/ Published in: Other
Expand |
Embed | Plain Text
ssh-keygen -t dsa ssh user@host 'cat >> .ssh/authorizedkeys' < .ssh/id_dsa.pub
Comments
Subscribe to comments
You need to login to post a comment.
jnunemaker on 09/07/06
textmate Shell Bash java unix rsync osx linux cli ssh scp consolefu tomcat cpio
5 people have marked this snippet as a favorite
kellyharding
willcodeforfood
zachwood
naehrstoff
jleggat
ssh-keygen -t dsa ssh user@host 'cat >> .ssh/authorizedkeys' < .ssh/id_dsa.pub
Subscribe to comments
You need to login to post a comment.
There is also an easier way for doing the last step:
ssh-copy-id user@host
It will add your public key to the autorized keys list on the remote host
thanks, but ssh-copy-id doesn't isn't on os x by default.