MacOS does not save SSH Keys in Sierra Keychain / PubkeyAcceptedKeyTypes?

Server administrators / developers owners iMac or MacBookThey had a little surprise after the launch of the new MacOS Sierra.
DSS SSH The keys used to authenticate without password on servers or other privatekeys / publickeys systems are no longer retained in MacOS SierraThat comes with OpenSSH 7. Even if your key has been added after system restart, when trying to log in Terminal, we will be greeted by the message:

Permission denied (publicKey, GSSAPI-keyex, GSSAPI-with-mic).

By default, adding a key in Keychain is done in both OS X and MacOS, through the command line: "ssh-add -K <key>"Executed in Port. Until the Sierra macOS launch, SSH keys were retained in the keychain, requiring only the SSH / SFTP authentication command on the servers whose keys were saved. Unfortunately, this command stops working, and "ssh-add -K" has no value on Sierra macOS. This command will need to be executed in Port after each restart or log out of the operating system because the ssh key is no longer saves MacOS Keychain.

However, there are solutions. Adding a mini script .plist in ~ / Library / LaunchAgents /That execute command line ssh-add in stratupAt startup.
Details and discussion on this topic can be found at this.
Saving SSH keys in Sierra MacOS Keychain.

MacOS does not save SSH Keys in Sierra Keychain / PubkeyAcceptedKeyTypes?

About the author


Passionate about everything that means gadget and IT, I am pleased to write on from 2006 and I love to discover new things about computers and macOS, Linux operating systems, Windows, iOS and Android.

Leave a Comment