hi, basically i am trying to write a quick script to remote copy something as follow.
"" scp [email]user@192.168.1.5:/var/tmp/file.txt[/email] /var/tmp/newfile.txt ""
if i do above cmd on the shell, i will be asked for password:
my question is, how i do automate the password part within the shell script to make it just copy without prompting for the password.
thanks
Configure the ssh to use private keys.
Here are a few articles on keying ssh: http://www.linuxjournal.com/article/8600 http://www.hostingrails.com/wiki/27/HowTo-SSHSCP-without-a-password
wow, thanks sknake. those 2 articles give me exactly what i need. = )