-
-
Notifications
You must be signed in to change notification settings - Fork 906
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
C# SSH.NET "ERROR: An established connection was aborted by the server" #1028
Comments
I'm experiencing the same issue after a FW update. Where you able to figure out a solution? |
Can you check the máx connections limits in the server? in my case, this was reached after 3 attemps, and the server close the connection before establishing it, or setting the server identification... |
I'm the only one trying to connect to the device. So there are 0 connections when I'm trying to connect. Here is where the error gets thrown: |
can you debug the session and excepcion and check if the server sends you the identificacion? |
Would that be stored in my SshClient.ConnectionInfo? Or would that be stored in the exception? |
Yes, in the SshClient.ConnectionInfo. The problem I had face is that connection info is not send by the server, so it cannot be opened. |
I was asking for the "server Version" which is shared in the connection phase... so you are not facing the same thing... sorry :( |
No I'm able to connect via ssh on cli and through putty with no issue. I only get the problem when trying to use the library. The cli doesn't have any issues when running with -vvv. |
I got exactly same error massage as you and still not able to figure it out :( |
So I guess my FW update changed the host key algorithm they use. They originally used rsa-sha2-512/rsa-sha2-256 and updated to use ssh-rsa. But that shouldn't be an issue as to why the connection is getting aborted because this library supports ssh-rsa keys. |
Mine is even weird, the host key algorithm keeps the same in the new FW but just can't connect it... Really hope that someone can help on this issue :( |
Have you had any updates in the last 2 days? I've been trying to create a new key to test with, but I'm not able to on my server. If you could test this with a new key pair, let me know what the result is. |
After doing some more digging, I found that my server updated to OpenSSH version 9.0p1. Can you let me know if you are using the same version of OpenSSH if you are using that for your server? |
I have come to the conclusion that my server uses rsa-sha2-256 and rsa-sha512 host key algorithms which is not supported by SSH.Net. |
I have the same problem. Will SSH.Net support RSA-SHA-256 host key later? |
There's this pull request #971 that is a work in progress it looks like, but it hasn't been touched since September so i'm not sure. |
I'm trying to connect to a server thru SSH.NET. It worked fine before but started to show "An established connection was aborted by the server" after some FW update on the server. Below is the code I'm using
Can anyone help me on this issue please?
The text was updated successfully, but these errors were encountered: