How to generate an SSH2 DSA key?

To create the /.ssh directory:

cd
mkdir .ssh
chmod 700 .ssh

To create the SSH2 DSA key:

ssh-keygen -t dsa