Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH.NET - An established connection was aborted by the software in your host machine

Tags:

git

c#

linux

ssh

suse

I'm using SSH.NET to connect and send commands to my Linux. Until yesterday it was SLES 12 and everything worked fine. Today I've upgraded it to SLES12 SP1 and when I'm trying to connect with server (through application with SSH.NET) I get exception - An established connection was aborted by the software in your host machine. All time I could use Putty or Git Bash to connect to machine and there is no problem. Putty and my application are using the same port (22). What I can do? I'm pretty sure that problem lies in my SLES configuration.

like image 527
Plaguebinder Avatar asked Jan 28 '26 02:01

Plaguebinder


1 Answers

I don´t know about SLES12 but i'm almost shure that it uses sshd and that is what's causing your problem. In the latest version, the minimum key sizes were increased and this brakes ssh.net causing your exception.

A patch has been submited and will be integrated in the next release. Until then, the only solution is to use a pre-release version of ssh.net

More info:

  • https://github.com/duplicati/duplicati/issues/1687
  • https://sshnet.codeplex.com/workitem/1973
like image 125
Nippius Avatar answered Jan 30 '26 15:01

Nippius



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!