

It’s odd I didn’t know about this and odd that the Sierra upgrade doesn’t warn you about it as it upgrades OpenSSH behind the scenes. Then, I returned to the server and turned off PasswordAuthentication:Īnd that was it, just a few hours lost hunting down and duplicating the proper steps.
#MAC SSH KEYGEN SHA256 PASSWORD#
$ ssh -p 22 -i ~/.ssh/id_newkey worked fine! Turn Off Password Access to Your Server Then, I tested it in another terminal window from my Mac: id_newkey > authorized_keys Verify New Key Authentication to to Your Server Then, add it to the authorized_keys file: $ ssh -p 22 I performed the following steps to retrieve the public key from Gist and store it on the server.

Next, I used password authentication to sign in to my server: There may be a more obvious way in the UX but I couldn’t find it. Visiting the raw page for that gist, I copied the URL for the raw content of the Gist. Next, I created a new private Gist and pasted the public key into it and saved it. Ssh-rsa AAAAB3NzaC1yxxxxyyyyzzzz123121231jakdljasdasdasdklasjdlakszaC1yxxxxyyyyzzzz123121231jakdljasdasdasdklasjdlakszaC1yxxxxyyyyzzzz123121231jakdljasdasdasdklasjdlakszaC1yxxxxyyyyzzzz123121231jakdljasdasdasdklasjdlakszaC1yxxxxyyyyzzzz123121231jakdljasdasdasdklasjdlaksfTt12MRn Upload the New Key to Github Gist Then, I copied out the public key so I could upload to a sharing service: Your public key has been saved in id_newkey.pub. Your identification has been saved in id_newkey.

Next, we’ll create the new RSA key on my Mac.Įnter file in which to save the key (/Users/Jeff/.ssh/id_rsa): id_newkeyĮnter passphrase (empty for no passphrase): See instructions for setting up SSH key authentication for Windows, Mac. For example, I use Panic’s Prompt 2 SSH App on my iPad. A SSH key with a passphrase provides additional security and can act as an. If you can’t access your server in any way, there may be no easy way to regain access without using another device. # Change to no to disable tunnelled clear text passwords With this, I turned back on PasswordAuthentication temporarily on my servers: Here’s what worked well for me: Reactivate Password Authenticationįirstly, I logged into my Digital Ocean droplets via the virtual host console they offer. If you want more background on this, check out: Secure Your Instance Updating server keys is always a bit time consuming. I learned that my older ssh-dss (DSA) keys were no longer secure and that I needed to replace them with RSA keys. The MacOS Sierra upgrade breaking SSH keysĪfter I upgraded MacOS Sierra, my SSH key access to Ubuntu servers broke.
