Skip to content

Renci.SshNet.Common.SshOperationTimeoutException #339

@afatnassi

Description

@afatnassi

Getting this error when trying to connect:

Renci.SshNet.Abstractions.SocketAbstraction.Read(Socket socket, Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
at Renci.SshNet.Session.SocketReadLine(TimeSpan timeout)
at Renci.SshNet.Session.Connect()
at Renci.SshNet.BaseClient.Connect()

My knowledge about these protocols is limited. It seems that the code is waiting on some sort of a return message and timing out. I tried pinging the server telnet host 22 and I was able to connect but I only get a return message SSH-2.0-ActiveTransferSSHD once I've entered a character on the command line. So maybe the connect method is timing out because it's not getting any return message ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions