Posted By

jnunemaker on 09/07/06


Tagged

textmate Shell Bash java unix rsync osx linux cli ssh scp consolefu tomcat cpio


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

kellyharding
willcodeforfood
zachwood
naehrstoff
jleggat


SSH Key Pairs Stuff


 / Published in: Other
 

  1.  
  2. ssh-keygen -t dsa
  3. ssh user@host 'cat >> .ssh/authorizedkeys' < .ssh/id_dsa.pub
  4.  

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Juanje on May 8, 2008

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

Posted By: zachwood on January 13, 2009

thanks, but ssh-copy-id doesn't isn't on os x by default.

You need to login to post a comment.