Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Specifically if using an RSA key (as your example suggests) and the server is doesn't support rsa-sha2 for host auth because it's old (as opposed to insanely configured) it most likely doesn't support rsa-sha2 for user auth either, so OpenSSH >= 8.8 needs PubkeyAcceptedAlgorithms or now-deprecated PubkeyAcceptedKeyTypes . And newer key types (ecdsa, ed25519) may fail on the old server, but keyfile format does not matter: an RSA key stored locally in a "BEGIN OPENSSH PRIVATE KEY" new-format file will work to exactly the same extent as an old-format "BEGIN RSA PRIVATE KEY". Commented Jun 10, 2024 at 4:25