We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

miklophone on 08/21/06


Tagged

ssh


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

yuconner
kellyharding
willcodeforfood


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 username@ftp.yourdomain.com '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 username@ftp.yourdomain.com

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

You need to login to post a comment.