ssh-keygen.
This will generate ~/.ssh/identity and
~/.ssh/identity.pub.
identity.pub files (which contain a
public key on one line) and create an ~/.ssh/authorized_keys
file by placing the contents of each separate identity.pub file
on a single line of the ~/.ssh/authorized_keys file (then place on
all sshable hosts).
ssh-keygen -t {rsa,dsa} (you choose between
rsa keys or dsa keys, currently I use DSA), which will generate
~/.ssh/id_{dsa,rsa} and
~/.ssh/id_{dsa,rsa}.pub.
~/.ssh/authorized_keys2 file using the id_{dsa,rsa}.pub files.