Using ssh-keygen to log in securely without a password
To generate a secure public/private key pair to log in securely, and without a password.
At the command line:
ssh-keygen -d- hit
returnthree times ssh username@ftp.yourdomain.com 'test -d .ssh || mkdir -m 0700 .ssh ; cat >> .ssh/authorized_keys && chmod 0600 .ssh/*' < ~/.ssh/id_dsa.pub- press
return - wait for it to say
Password - enter the password
- You’re now signed in.
exit- Now you can test it:
ssh username@ftp.yourdomain.com
“Source”:http://blog.dreamhosters.com/kbase/index.cgi?area=138
* * *