Get a ssh public key (Unix)
Type the following command at your Unix shell prompt:
ssh-keygen -t dsa
You should see something like:
Generating public/private dsa key pair. Enter file in which to save the key (/home/asmith/.ssh/id_dsa): Created directory '/home/asmith/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/asmith/.ssh/id_dsa. Your public key has been saved in /home/asmith/.ssh/id_dsa.pub. The key fingerprint is: 1a:5e:d6:0b:0f:5a:61:98:ed:3f:d4:26:fa:65:62:50 asmith@alicehost.com
