This project is read-only.

SSH through Proxy Problem

May 29, 2013 at 8:57 AM
Edited Jun 6, 2013 at 12:45 PM
Hello guys,

im trying to connect through a proxy to my SSH server but i get an exception:
"Renci.SshNet.Common.SshOperationTimeoutException: Socket read operation has time
d out
at Renci.SshNet.Session.SocketReadLine(String& response)
at Renci.SshNet.Session.ConnectHttp()
at Renci.SshNet.Session.Connect()
at Renci.SshNet.BaseClient.Connect()
at UAMT.MyClasses.RenciSSH..ctor() in D:\Project\MyClasses\RenciSSH.cs:line 36
In the Java Console i can see that it is connecting to Proxy but cant get connection to server. I placed the exe on a local pc and connected successfully to the SSH server without going through proxy. I tryed to connect with PuTTY using the same configuration (with proxy) and it worked fine. I also tryed another lib "Chilkat" and it worked fine (without KeyAuthentification) too.

the code im using:

ConnectionInfo connectionInfo = new ConnectionInfo("xx.xx.xx.xx", 22, "username", ProxyTypes.Http, "", 18080, "", "", new PasswordAuthenticationMethod("username", "password"));
             using (var ssh = new SshClient(connectionInfo))

                ssh.RunCommand("ls -l");

        catch (Exception ex)
Am i doing something wrong maybe a flag that need to be set or something?

Thanks in advance