Re: scp batch mode?

2007-08-16 Thread Andreas Kahari
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?

2007-08-15 Thread James Hartley
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?

2007-08-15 Thread Daniel A. Ramaley
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?

2007-08-15 Thread Jeremy C. Reed
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?

2007-08-15 Thread Dag Richards

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?