Posted By

miklophone on 08/21/06


Tagged

ssh


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

yuconner
kellyharding
willcodeforfood
xenonite
secretgspot


Passwordless SSH


 / Published in: Other
 

  1. ssh-keygen -d
  2.  
  3. [hit enter three times]
  4.  
  5. [Replacing "username" and "yourdomain" with yours,
  6. copy&paste/type:]
  7.  
  8. ssh [email protected] 'test -d .ssh || mkdir -m 0700 .ssh ; cat >> .ssh/authorized_keys && chmod 0600 .ssh/*' < ~/.ssh/id_dsa.pub

Report this snippet  

Comments

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

There is also an easier way for doing the last step:

ssh-copy-id [email protected]

It will add your public key to the autorized keys list on the remote host

You need to login to post a comment.