Skip to content

The connection was closed by the server: idle connection timeout expired (ProtocolError) #952

Closed
@Shafqat-Ali

Description

@Shafqat-Ali

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions