search for: batchmode

Displaying 20 results from an estimated 103 matches for "batchmode".

2003 Sep 17
1
[Bug 666] 'BatchMode yes' makes ssh(1) look for /usr/local/etc/ssh_known_hosts
http://bugzilla.mindrot.org/show_bug.cgi?id=666 Summary: 'BatchMode yes' makes ssh(1) look for /usr/local/etc/ssh_known_hosts Product: Portable OpenSSH Version: 3.7.1p1 Platform: Alpha OS/Version: OSF/1 Status: NEW Severity: critical Priority: P2 Component: sshd...
2011 May 11
1
ssh command line option processing behaviour
Hi, usualy, in the unix world, while processing command line options, unix programs keep the last option value, overriding config file options or previous command line ones, unfortunately, ssh only keep the first option processed. ex. : ssh -o BatchMode=no -o BatchMode=yes host cmd arg... the unix common expected behaviour is to have BatchMode = true, while ssh says BatchMode = false. how about to change the ssh command line processing bahaviour ? Regards, Cyrille Lefevre -- mailto:Cyrille.Lefevre-lists at laposte.net
2016 Oct 29
2
-e escape rule
> The point is that the original escaping DOUBLE escapes an equals sign: > foo\\\=bar > It shouldn't, there's no reason to. If you paste into your command line: rsync -e ssh\ -l\ backup\ -i\ /etc/synco/id_rsa\ -o\ ConnectTimeout\\\=60\ -o\ BatchMode\\\=yes The list of arguments would be (i.e. the values in ARGV): ['rsync', '-e', 'ssh -l backup -i /etc/synco/id_rsa -o ConnectTimeout\=60 -o BatchMode\=yes'] The command ssh -l backup -i /etc/synco/id_rsa -o ConnectTimeout\=60 -o BatchMode\=yes Is a correct and valid s...
2016 Oct 20
5
-e escape rule
...whitespace with a backslash rather than quotes. However, this appears to cause some kind of issue in Rsync when it computes argv from -e option. Here is an example command generated by some Ruby code: rsync --archive --stats -e ssh\ -l\ backup\ -i\ /etc/synco/id_rsa\ -o\ ConnectTimeout\\\=60\ -o\ BatchMode\\\=yes --link-dest ../../latest/etc/ /etc/ example.backup.server.com:/tank/backup/servers/blah/latest.snapshot/etc/ We can check that something like this is valid: files% echo foo\ bar\\\=baz foo bar\=baz -- what Rsync should be receiving files% echo foo bar\=baz foo bar=baz...
2016 Oct 29
2
-e escape rule
> Yeah, it only does space-splitting and that's all it will ever do. It still looks to me like there is a bug in the original escaping, since any command receiving that string is receiving a backslash that is not supposed to be there. It should only be escaping the string enough to get it to rsync, not trying to guess what rsync is going to do with it after it gets it. I'm not
2010 Feb 25
1
sftp Batchmode command level error suppression does not work?
Hi guys - OpenSSH sftp (on solaris) >From man page Termination on error can be suppressed on a command by command basis by prefixing the command with a `-' character (for example, -rm /tmp/blah* ). This does not seem to work - instead the server seems to fail to recognize the command from the batchfile. Consider this batchfile mkdir tmp cd tmp put rpt.list bye We want to
2012 May 03
1
is there a way of identifying batch mode running?
...exe However I like to get the code working manually first using source("MyRCode.r") I'd like to be able to put something at the top of the file that discriminates between the two running modes eg #Rscript.exe --slave -e source('MyRCode.r') "some_data_file.txt" if(batchmode = TRUE){ #get arguments for script from command line foo <- commandArgs() #where commandArgs() returns "some_data_file.txt" } if(batchmode == FALSE){ #no command line usage so need to manually supply starting arguments for script foo <- "some_data_file.txt" } [[al...
2008 Aug 13
0
ProxyCommand and ExitOnForwardFailure = leftover process
...via hostB using ProxyCommand in my private .ssh/config file on hostA. <end of .ssh/config>: host hostB user X hostC ProxyCommand ssh hostB nc hostC 22 Now, on hostA, I want to forward local port 3333 to port 5433 on hostC from a script using: ssh -x -N -L 3333:hostC:5433 -o BatchMode=yes -o ExitOnForwardFailure=yes X at hostC That works fine, and I now have two processes: <pid> <cmdline> 31292 ssh -x -N -L 3333:hostC:5433 -o BatchMode=yes -o ExitOnForwardFailure=yes X at hostC 31293 ssh hostB nc hostC 22 I assume the second is started by the first to forwar...
2007 Feb 21
1
Strange SSH with rsync
Has anyone any idea why this wont work? Its in a script and im passing -e "${SSH}" to the Rsync command where :- SSH="$(/usr/bin/which ssh) -o ConnectTimeout=15 -o BatchMode=yes -n" The below is output from set -x for my script. Below that is the error from errorlog /usr/bin/rsync -PavRz --delete --delete-excluded --copy-unsafe-links --numeric-ids -e /usr/bin/ssh -o ConnectTimeout=15 -o BatchMode=yes -n <user>@<host>:/tmp/davefile2 /dir/remote_backup...
2001 Sep 26
2
newbie: rsync and ssh and password
...y: "rsync -az -e ssh myserver.ac.uk:/var/lib/mysql /www/rsynctagsassets/databases" I wanted to run it as a script so put it into a file called rsync.sh and chmod +x 'd it. It runs as a script okay but still prompts for a password. I read "man ssh" and the bit about "BatchMode" and "yes" but didn't really follow it. Is there quick way to implement my script please anyone ? Many thanks, Pete Lindsay ____________________________________ Peter Lindsay School of Computer Science University of St Andrews St Andrews Fife, KY16 9SS UK Telephone +44 (0)133...
2009 Dec 24
3
ConnectTimeout=2 not working for me
Hi all, I have somewhat a strange problem that I could not figure out, maybe someone here can lelp. I have a script that uses scp to distribute files to many servers, I use '-o BatchMode=yes -o ConnectTimeout=2 options so the scp will not get stuck if something is wrong with the remote host. If the remote host is down (non-pingable) or sshd is down the timeout option works and the scp continues to the next host in 2 seconds, but if the host is up (pingable) and sshd is listening o...
2010 Jan 28
3
Repost: [patch] Automatically add keys to agent
...e on). The ways to avoid ever falling into this trap: 1) Always ssh with -v, and read the verbose messages every time, so you are certain you know where the prompt originated. Not likely. 2) Always ssh-add your passphrases locally first, before ssh'ing anywhere. For best results, set BatchMode=yes by default in ~/.ssh/config so that you will never ever ever be prompted legitimately; the connection will simply fail until you remember to ssh-add. Therefore any time you are ever prompted when ssh'ing somewhere, you are being messed with. Your patch undermines 2). If it be...
2008 Jun 30
2
Build bug and execution bug
...878 basically, the "RemoteForward" is not working as expected. It works with my client side daemon running 0.9.8c and 0.9.8e (as reported by "ssh", not "sshd"), but not with 0.9.8g. On the server side, I invoke: /usr/bin/ssh -v -q -g -R ${PORT}:localhost:22 -n \ -o BatchMode=yes -o StrictHostKeyChecking=no <home-mach> The only user allowed to ssh in has a shell that does nothing except keep the connection open. On my home machine, I then attempt: ssh -X -p ${PORT} <work-uname>@localhost The result (with "-vv'): OpenSSH_5.0p1, OpenSSL 0.9.8g 19...
2023 Aug 02
1
[PATCH] ssh_config: reflect default CheckHostIP no
...nfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ssh_config b/ssh_config > index 842ea866c..1eb1c0063 100644 > --- a/ssh_config > +++ b/ssh_config > @@ -25,7 +25,7 @@ > # GSSAPIAuthentication no > # GSSAPIDelegateCredentials no > # BatchMode no > -# CheckHostIP yes > +# CheckHostIP no > # AddressFamily any > # ConnectTimeout 0 > # StrictHostKeyChecking ask > -- > 2.38.1 >
2001 Jun 18
1
make scp more script-capable
Hi, here's a proposal of a new ssh/scp-feature: ------------------------------------------------------- please implement a timeout with non-zero error-returncode on "Are you sure you want to continue connecting (yes/no)?" ------------------------------------------------------- My situation: recently I have implemented a cronjob that is using scp. Due to organizational
2005 Feb 17
1
SFTP batch mode patch
...dmin and open-source developer diff -ur openssh-3.9p1-orig\sftp.c openssh-3.9p1\sftp.c --- openssh-3.9p1-orig\sftp.c Sat Jul 17 02:12:08 2004 +++ openssh-3.9p1\sftp.c Thu Oct 14 11:39:40 2004 @@ -1420,6 +1420,7 @@ fatal("%s (%s).", strerror(errno), optarg); showprogress = 0; batchmode = 1; + addargs(&args, "-obatchmode yes"); break; case 'P': sftp_direct = optarg; diff -ur openssh-3.9p1-orig\sshconnect.c openssh-3.9p1\sshconnect.c --- openssh-3.9p1-orig\sshconnect.c Mon Jun 21 22:56:02 2004 +++ openssh-3.9p1\sshconnect.c Thu Oct 14 09:02:32 200...
2006 Mar 02
2
sftp batch mode and password authentication
Hi all, I used to execute ftp in batch mode to dowload files. In my case, password authentication is the only way to get remote access. Could anyone tell me how can i accomplish the same task using sftp under batchmode as what i have done with ftp ? Meanwhile, how can i specify the password securely ? Is there anyother alternatives ? -- Thanks M.P
2006 Nov 24
1
fail to exit shell after issuing 'ssh -f .... targethost.foo.bar sleep 500000'
Hi, Software in use: OpenSSH-Version: 4.5p1 OpenSSL-Version: 0.98d zlib-Version: 1.2.3 OS-Platform: AIX 5.3 ML4 Problem: when issuing following command on an AIX host: $ ssh -2 -n -f -x -L6666:localhost:6666 -o BatchMode=yes targethost sleep 500000 $ exit the shell is waiting for the finish of issued command (sleep). The expected behaviour of above command should be, that the shell would close immediately and the issued command (... sleep) still would run as a backgroud process. On Solaris (tested on 5.9, 5.10)...
2010 Nov 10
1
Exit Codes on Reverse Tunnel bug?
I ran the following command to create a reverse tunnel from another server back to my local host ssh -4xnT -o PreferredAuthentications=publickey -o ConnectTimeout=10 -o BatchMode=yes -f \ -o ExitOnForwardFailure=yes -N -R myTargetHost:2525:myLocalHost:25 myUser at myTargetHost and on machine=myTargetHost, the port 2525 was already being utilized, so it gave me this error and exited: ? ?? Error: remote port forwarding failed for listen port 2525 However, when I got the exi...
2012 Mar 28
2
Wine refusing to create a configuration directory there
Hello, I am new on the forum, and apologize in advance if this question was answered somewhere else -I looked up, but couldn't find it. This is NOT an issue with running wine as root; I am NOT trying to do that. Just so everybody knows! I am using MacOS 10.7.3 on a late 2011 MacBook Pro, and Wine used to work on it up until last week (it had been ported from a preceding Snow Leopard