Passwordless SSH


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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

You need to login to post a comment.