Fix Problems with Creating SSH Keys Using Mac Terminal
Posted on January 7, 2016 in Command Line, Mac, SSH by Matt Jennings
Per steps from GitHub, I tried using the code below in Mac Terminal to create a new SSH key
ssh-keygen -t rsa -b 4096 -C "email@example.com"
Then, when the
Enter file in which to save the key (/Users/mattpjennings/.ssh/id_rsa): prompt appeared I entered something like
Then, still in Terminal when I did
ls -al ~/.ssh to show my list of SSH keys unfortunately the SSH key files below did NOT appear, which should have:
To fix this problem, enter this command:
ssh-keygen -f ~/.ssh/id_rsa_mj_graphiti -t rsa -b 4096 -C "firstname.lastname@example.org"
Then, when I did
ls -al ~/.ssh I was able to see the SSH keys I just created, which were: