-
-
Notifications
You must be signed in to change notification settings - Fork 934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication exception when connecting to Fedora using private keys #834
Comments
@david-haim-sentinelone I can't tell from the point of SSH.NET but recently I was fighting the same error in OpenSSH in Windows, and it was not the fault of SSH.NET.
|
Seems like it happens due to OpenSSH 8.5 change.
I do not see in the library code any mentioning to "rsa-sha2-512" or "rsa-sha2-256. |
|
I found that by creating an |
As mentioned over there (why spread assumptions everywhere?) your issue looks like unsupported usage of Mono instead of .NET. And has nothing todo with Fedora. |
This has to do with Fedora, I didn't include links before. But it seems like due to security concerns Fedora doesn't support ssh-rsa keys anymore, in the default configuration.
For me adding |
Cause this statement is false, ECDsa should also work. |
Okay so it seems like Rider C# interactive doesn't use the same runtime as the project. So that's the problem I got there.
does in fact load (needs to be pem format, default format doesn't load). |
Ok, than I havent gone crazy. Thanks for the confirmitation! Aye, PEM is required in the currently released nuget, but my #614 got merged. |
Version 2023.0.0 has been published https://www.nuget.org/packages/SSH.NET/2023.0.0 |
Hi there
In my company we're using this library for our SSH communication with C#.
We found out that when trying to connect to fedora using private keys, a
Renci.SshNet.Common.SshAuthenticationException
is thrown.To reproduce: set up a fedora machine with SSH enabled with a private key, for example, by following the tutorial here, make sure that everything was set up correctly by connecting using your terminal/power shell.
using this example code :
A
Renci.SshNet.Common.SshAuthenticationException: Permission denied (publickey)
exception is thrown.From our small research, this doesn't happen with other unix-os (like ubuntu and cent-os) and doesn't happen when using a standalone implementation. like open-ssh. It happens only when the remote os is fedora and when trying to connect with a private key. Trying to connect to Fedora with a password also seem to work fine.
Thanks.
The text was updated successfully, but these errors were encountered: