macOS Sierra does not save SSH Keys in Keychain / pubkeyAcceptedKeyTypes ?

Administratorii of servers / developers owning iMac or MacBookThey had a little surprise after the launch of the new macOS Sierra.
DSS SSH Keys used for passwordless authentication on servers or other systems requiring privatekeys / publickeys are no longer retained in macOS SierraThat comes with OpenSSH 7. Even if the key was added, after restarting the system, 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 it is done both in OS X and in macOS, through the command line: “ssh-add k”Executed in Terminal. Until the launch macOS Sierra, SSH keys were retained in keychain, the simple SSH/SFTP authentication command is required to the servers whose keys have been saved. Unfortunately, this command no longer works, and "ssh-add -K ”has no value on macOS Sierra. This command will need to be executed in Terminal after every restart or logout from the operating system, because the ssh key is no longer saved in macOS Keychain.

There are still solutions. Add 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 macOS Sierra Keychain.

Passionate about technology, I enjoy writing on StealthSettings.com since 2006. I have a rich experience in operating systems: macOS, Windows, and Linux, as well as in programming languages and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, PrestaShop).

How to » iHowTo » iHowTo - macOS » macOS Sierra does not save SSH Keys in Keychain / pubkeyAcceptedKeyTypes ?
Leave a Comment