- In Terminal, type
ssh-keygen -t dsa - Accept the defaults when it queries you.
- Enter the following command, replacing 'username' with your username, and 'ip.add.ress.here' with your server's IP address.
rsync -av -e "ssh" ~/.ssh/id_dsa.pub
username@ip.add.ress.here:.ssh/authorized_keys - Enter your root password.
- Now you will need to SSH into your server to confirm the key was uploaded.
ssh username@yourdomain.com - Enter the following commands:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chown username. ~/.ssh/authorized_keys
For Mac OS X and Linux
- 280 Users Found This Useful