-
-
Notifications
You must be signed in to change notification settings - Fork 940
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
The connection was closed by the server: idle connection timeout expired (ProtocolError) #952
Comments
At first glance it seems that SG-350 is not responding. Are you able to connect using telnet? Did you try to capture network traffic (you can use Wireshark) and see what is happening? |
@IgorMilavec From same PC using Putty I can run all the commands, but from ssh.net library I'm getting this error "The connection was closed by the server: idle connection timeout expired (ProtocolError)." |
Can you capture network traffic in both cases and check for differences? |
Sure, I'll capture network traffic and share results here. |
I attached files of traffic monitoring with Wireshark. Please use this filter: "(ip.src == 10.1.7.26 && ip.dst == 172.17.21.254) || (ip.src == 172.17.21.254 && ip.dst == 10.1.7.26)" Traffic monitored for Putty (file name): PuttySession.pcapng I'm not network expert to analyze the traffic. Please take a look into files. @IgorMilavec Please support. |
@IgorMilavec @darinkes @hifi @drieseng |
@Shafqat-Ali @IgorMilavec @drieseng Then - as expected - sends [FIN, ACK] disconnection signal after 30s timeout due to inactivity. Why would the SSH/Net not start the Key Exchange Init? |
I have created a PR to resolve a similar issue I encountered: #972 |
It's done in #1274 |
The 2023.0.1 version has been released to Nuget: https://www.nuget.org/packages/SSH.NET/2023.0.1 |
Hi, @IgorMilavec @drieseng
I'm using ssh.net library for CISCO SG-350 switch configuration from C# web application and facing this error for only CISCO SG-350 model.
All the commands are working fine for CISCO SG-300 and HP switch but I'm unable to make connection only for CISCO SG-350 model.
If anyone facing and solved the same issue, please help me.
Error: The connection was closed by the server: idle connection timeout expired (ProtocolError).
StackTrace:
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle)
at Renci.SshNet.Session.Connect()
at Renci.SshNet.BaseClient.CreateAndConnectSession()
at Renci.SshNet.BaseClient.Connect()
The text was updated successfully, but these errors were encountered: