docs icon indicating copy to clipboard operation
docs copied to clipboard

SSH config PubkeyAcceptedKeyTypes directive for Error: Permission denied (publickey)

Open srbdev opened this issue 2 years ago • 9 comments

Code of Conduct

What article on docs.github.com is affected?

Error: Permission denied (publickey)

What part(s) of the article would you like to see updated?

Creating a new section about adding the PubkeyAcceptedKeyTypes +ssh-ed25519 directive to the user's ~/.ssh/config file to fix the Error: Permission denied (publickey) issue, and this seems to affect macOS 12.3 with Git version 2.32.1.

Additional information

No response

srbdev avatar Aug 24 '22 18:08 srbdev

Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

welcome[bot] avatar Aug 24 '22 18:08 welcome[bot]

@srbdev Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:

cmwilson21 avatar Aug 25 '22 15:08 cmwilson21

Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert :eyes:

github-actions[bot] avatar Oct 12 '22 21:10 github-actions[bot]

👋 hi there from the product manager for Git Systems at GitHub. I don't have a 12.3 machine handy to test this out, and my searching failed to turn up much that was related. @srbdev do you have any links handy which showcase this problem and/or solution? I'm not looking for a high burden of "proof" here, but I want to understand how common it is, which versions of macOS / Git it's likely to span, and so on. Thanks!

vtbassmatt avatar Oct 13 '22 15:10 vtbassmatt

I believe I adjusted the solution from this StackOverflow post: https://stackoverflow.com/a/35681481. Note that I have run into this same issue with trying to SSH to other systems from newer clients (Fedora 36 when it was first released and this new mac) whereas I could still SSH into these same systems from "older" clients (Debian, older macOS, etc.). This is what makes me think that is a client issue, and maybe not a server configuration issue. Hope that helps!

srbdev avatar Oct 13 '22 17:10 srbdev

🙇 thank you for the pointer. I saw plenty of cases where macOS deprecated DSA keys, and those steps were the workaround. In that case, the instructions are to bring back something macOS had taken away.

What I couldn't find was any discussion of a recent-ish macOS having trouble using Ed25519 keys. Those are newer, and I can't figure out when macOS first shipped an SSH version capable of using them. And it seems odd (to me, anyhow) for any macOS release to support that key type but have it turned off by default.

vtbassmatt avatar Oct 13 '22 18:10 vtbassmatt

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Nov 11 '22 16:11 github-actions[bot]

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Dec 12 '22 16:12 github-actions[bot]

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Jan 10 '23 16:01 github-actions[bot]

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Feb 08 '23 16:02 github-actions[bot]

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Mar 10 '23 16:03 github-actions[bot]

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Apr 10 '23 16:04 github-actions[bot]

👋 Hey all. I'm going to go ahead and close this issue out due to inactivity. If I'm missing the obvious "next steps" please feel free to ping me or reopen this issue. I'm also wondering if this issue has been fixed with the latest updates. Again, if the same problem persists, please reach back out 💖

cmwilson21 avatar Jun 12 '23 20:06 cmwilson21