Generate an SSH Key

To generate a secure public/private key pair to log in securely, and without a password (if you want) from the command line (on your box, not logged into ftp, and replacing "username" and "yourdomain" with yours)

type:

ssh-keygen -d

hit enter three times and type:

scp ~/.ssh/id_dsa.pub username@ftp.yourdomain.com:.ssh/authorized_keys2

enter password and type:

ssh username@ftp.yourdomain.com

You're logged in!

Published on Wed, 07 Jan 2009 12:18