Create new key with passphrase:
$ ssh-keygen -t rsa -C [email protected]
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jarno/.ssh/netletic):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/jarno/.ssh/netletic.
Your public key has been saved in /home/jarno/.ssh/netletic.pub.
The key fingerprint is:
35:27:67:bc:c2:49:ee:c2:81:d2:10:84:b1:3e:05:59 [email protected]
Add passphrase to existing key:
$ ssh-keygen -p
Enter file in which the key is (/home/jarno/.ssh/netletic):
Enter old passphrase:
Key has comment '/home/jarno/.ssh/netletic'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.
Adding keys:
$ ssh-add --apple-use-keychain $HOME/.ssh/netletic
Delete all keys:
$ ssh-add -D