Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

start a secure copy and then log out

Status
Not open for further replies.

SirCharles

Programmer
Jun 10, 2002
212
US
I'd like to start a secure copy and then log out, let the command complete, and come back after dinner to check the status of the command. scp requires that you respond with a password. There is a -B option but the man pages don't say how to use it.
I'd like to be able to do something like this but
doesn't seem to work quite right. I still get prompted
for password. I tried putting this in a script and
backgrounding the script, but still didn't work.

scp -pr * user@ipaddress:/path/to/dir/. <<EOF
password
EOF

 
Alternatively, create a public and private key pair (without a passphrase), put the private key on the destination host and the public key in the destination host's 'authorized_keys' file, and authentication can be performed that way.

Annihilannic.
 
I tried the pass phrase stuff, but am still being prompted for a password.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top