954,116 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to enter for the prompt?

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

k2k
Posting Whiz
352 posts since Nov 2007
Reputation Points: 15
Solved Threads: 1
 

Configure the ssh to use private keys.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
 

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

k2k
Posting Whiz
352 posts since Nov 2007
Reputation Points: 15
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You