basically i am trying to write a quick script to remote copy something as follow.

"" scp [email]user@[/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.


Configure the ssh to use private keys.

wow, thanks sknake. those 2 articles give me exactly what i need. = )