Ssh And Scp Without Typing A Password Each Time
Join the DZone community and get the full member experience.Join For Free
* You can create and exchange ssh keys to avoid repeatedly typing your password.Source: ssh-keygen -t dsa Type this once per log-in session Source: Now copy the .ssh/id_dsa.pub file to
. Source: scp .ssh/id_dsa.pub userid@ :tempid we've renamed it tempid. Destination: cat tempid >> .ssh/authorized_keys add the contents of tempid to .ssh/authorized_keys. Destination: rm tempid.