Generate a key interactively

$ ssh-keygen

Specify filename

$ ssh-keygen -f ~/.ssh/filename

Generate public key from private key

$ ssh-keygen -y -f private.key > public.pub

Change comment

$ ssh-keygen -c -f ~/.ssh/id\_rsa

Change private key passphrase

$ ssh-keygen -p -f ~/.ssh/id\_rsa
Comments