How can I use scp without providing a password

Posted by Tim on Server Fault See other posts from Server Fault or by Tim
Published on 2010-02-26T01:34:17Z Indexed on 2012/06/13 4:42 UTC
Read the original article Hit count: 543

Filed under:
|
|

I have asked a question before in here. My question was that I tried to give my password to scp via piping

echo mypassword | scp [email protected]:project/* ~/project/  

However it still asks me to manually input the password. How should I specify mypassword to scp in commands?

I still don't understand one of the replies. what is a input stream by TTY, for example? What are the common ways for a input stream? How to know what type of input stream a stdin input to a command is? For example that of ssh/scp.

© Server Fault or respective owner

Related posts about input

Related posts about stream