enure » post

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:

  1. ssh-keygen -d
  2. hit return three times
  3. ssh username@ftp.yourdomain.com 'test -d .ssh || mkdir -m 0700 .ssh ; cat >> .ssh/authorized_keys && chmod 0600 .ssh/*' < ~/.ssh/id_dsa.pub
  4. press return
  5. wait for it to say Password
  6. enter the password
  7. ssh username@ftp.yourdomain.com

Source>

* * *

search

Or, see a list of articles