Encrypted keys and Keychain on Mac #522
-
I hit the "Permissions denied" problem on Mac recently. My config was:
Passphrase was saved with With this setup, key is being ignored (while it's working fine with I had to also add key to the agent with Question: should it be addressed, how do |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
As far as I know, keychain integration on the Mac is something is handled as a custom patch, in both the closed-source version that Apple ships and possibly as a patch provided by MacPorts. The details of how it works aren't publicly documented, though, and while I think Apple did release a patch under the BSD license, the changes are quite extensive so it may be difficult for any other SSH implementations to port and maintain, especially as Apple evolves the keychain internals. In a quick search, I found https://github.com/jpouellet/MacPorts/blob/master/net/openssh/files/0002-Apple-keychain-integration-other-changes.patch, which is an 11,000+ line diff. That's not something I would be comfortable trying to port. If you've got things working with ssh-agent, that's probably your best option for sharing keys between OpenSSH and AsyncSSH without having to provide a password. As for things working with git, I believe that may be using OpenSSH when SSH is requested, so any patches to OpenSSH are automatically picked up. |
Beta Was this translation helpful? Give feedback.
As far as I know, keychain integration on the Mac is something is handled as a custom patch, in both the closed-source version that Apple ships and possibly as a patch provided by MacPorts. The details of how it works aren't publicly documented, though, and while I think Apple did release a patch under the BSD license, the changes are quite extensive so it may be difficult for any other SSH implementations to port and maintain, especially as Apple evolves the keychain internals.
In a quick search, I found https://github.com/jpouellet/MacPorts/blob/master/net/openssh/files/0002-Apple-keychain-integration-other-changes.patch, which is an 11,000+ line diff. That's not something I would be co…