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

Recommended Answers

All 3 Replies

Configure the ssh to use private keys.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.