Re: scp batch mode?
Another way: # Open a connection to the remote host and # create a control socket at /tmp/ssh_socket ssh -S /tmp/ssh_socket -M -N -f host.example.com # Use the control socket to transfer files. scp -o ControlPath=/tmp/ssh_socket file1 dummy:remote_file1 scp -o ControlPath=/tmp/ssh_socket file2 dummy:remote_file2 # etc. # or with rsync... rsync --rsh=ssh -S /tmp/ssh_socket -av /local/dir/ dummy:/remote/dir/ # Bring the connection down. ssh -S /tmp/ssh_socket -O exit dummy The dummy host above can be anything, it doesn't matter since you have already specified the socket to send things through. Cheers, Andreas On 15/08/07, James Hartley [EMAIL PROTECTED] wrote: The manpage for scp(1) mentions the -B option for running scp in batch mode, but no further details. How can scp be run without prompting for a password? Thanks. -- Andreas Kahari Somewhere in the general Cambridge area, UK
scp batch mode?
The manpage for scp(1) mentions the -B option for running scp in batch mode, but no further details. How can scp be run without prompting for a password? Thanks.
Re: scp batch mode?
On Wednesday 15 August 2007 13:50, you wrote: How can scp be run without prompting for a password? Set up ssh shared keys. Dan RamaleyDial Center 118, Drake University Network Programmer/Analyst 2407 Carpenter Ave +1 515 271-4540Des Moines IA 50311 USA
Re: scp batch mode?
On Wed, 15 Aug 2007, James Hartley wrote: The manpage for scp(1) mentions the -B option for running scp in batch mode, but no further details. How can scp be run without prompting for a password? It sets Batchmode yes. So read the ssh_config manpage about BatchMode. You must still setup your authentication. But with BatchMode yes, your client won't prompt for information. Jeremy C. Reed
Re: scp batch mode?
James Hartley wrote: The manpage for scp(1) mentions the -B option for running scp in batch mode, but no further details. How can scp be run without prompting for a password? Thanks. passwordless rsa key?