Skip to content

Instantly share code, notes, and snippets.

View demjm's full-sized avatar

Dembélé Jean-Marc demjm

View GitHub Profile
#How to remove your SSH public/private keys, recreate them, and then add your newly created public key to the servers and online services you use.
#Remove your SSH public/private keys:
rm ~/.ssh/id_rsa*
#Recreate the keypair, choosing a new passphrase:
ssh-keygen -t rsa -f ~/.ssh/id_rsa
#Add the newly created private key to your OS X Keychain to store the passphrase and manage unlocking it automatically:
ssh-add -K ~/.ssh/id_rsa