My preferred key generation command using OpenSSH is
{{code}}
ssh-keygen -t rsa -b 2048
{{/code}}
Keys will be created (by default) in
{{code}}
~/.ssh/id_rsa #private key - do not distribute
~/.ssh/id_rsa.pub #public key - place in remote systems
{{/code}}
In order to generate keys just execute on your PC ssh-keygen -t dsa. It will create two files at your user home directory .ssh/id_dsa and .ssh/id_dsa.pub.
Content of id_dsa.pub should be pasted to the form described in the page