ssh-keygen

Check for SSH keys

cd ~/.ssh

RSA

ssh-keygen -t rsa

DSA

ssh-keygen -t dsa

More bits

ssh-keygen -b 4096

Key file

ssh-keygen -b 4096 -t rsa -f general

Comment

ssh-keygen -t rsa -C "mail@example.com"

Copy to clipboard

sudo apt-get install xclip
xclip -sel clip > ~/.ssh/id_rsa.pub

Soure