Hello,
as proposed [here](https://sshnet.codeplex.com/discussions/576135) i open this issue for my problem.
I have one type of machines where i had no luck to connect via SSH.NET but putty has no problem.
SSH.NET says "Renci.SshNet.SshOperationTimeoutException" when i call the "Connect" method of SshClient.
I checked both, putty and SSH.NET connection via Wireshark and SSH.NET stuck before Key Exchange
SSH.NET:
> 32625 1429.943738000 172.20.0.138 10.30.0.4 TCP 66 40283→22 [SYN] Seq=0 Win=65535 Len=0 MSS=1460 WS=4 SACK_PERM=1
32626 1429.959065000 10.30.0.4 172.20.0.138 TCP 66 22→40283 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=16
32627 1429.959157000 172.20.0.138 10.30.0.4 TCP 54 40283→22 [ACK] Seq=1 Ack=1 Win=137072 Len=0
32629 1429.979514000 10.30.0.4 172.20.0.138 SSHv2 70 Server: Protocol (SSH-2.0-SSH.1.0)
32630 1429.989451000 172.20.0.138 10.30.0.4 SSHv2 92 Client: Protocol (SSH-2.0-Renci.SshNet.SshClient.0.0.1)
PuTTy:
> 33421 1474.605012000 172.20.0.138 10.30.0.4 TCP 66 40300→22 [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM=1
33422 1474.618777000 10.30.0.4 172.20.0.138 TCP 66 22→40300 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=16
33423 1474.618874000 172.20.0.138 10.30.0.4 TCP 54 40300→22 [ACK] Seq=1 Ack=1 Win=65536 Len=0
33424 1474.628474000 10.30.0.4 172.20.0.138 SSHv2 70 Server: Protocol (SSH-2.0-SSH.1.0)
33425 1474.628878000 172.20.0.138 10.30.0.4 SSHv2 82 Client: Protocol (SSH-2.0-PuTTY_Release_0.63)
33426 1474.628949000 172.20.0.138 10.30.0.4 SSHv2 726 Client: Key Exchange Init
33427 1474.638400000 10.30.0.4 172.20.0.138 TCP 60 22→40300 [ACK] Seq=17 Ack=29 Win=5840 Len=0
33428 1474.648490000 10.30.0.4 172.20.0.138 TCP 60 22→40300 [ACK] Seq=17 Ack=701 Win=8768 Len=0
33429 1474.649245000 10.30.0.4 172.20.0.138 SSHv2 302 Server: Key Exchange Init
33430 1474.697866000 172.20.0.138 10.30.0.4 TCP 54 40300→22 [ACK] Seq=701 Ack=265 Win=65280 Len=0
33449 1475.809952000 172.20.0.138 10.30.0.4 SSHv2 198 Client: Diffie-Hellman Key Exchange Init
33450 1475.851027000 10.30.0.4 172.20.0.138 TCP 60 22→40300 [ACK] Seq=265 Ack=845 Win=10112 Len=0
33496 1477.154579000 10.30.0.4 172.20.0.138 SSHv2 694 Server: Diffie-Hellman Key Exchange Reply
33497 1477.173475000 172.20.0.138 10.30.0.4 SSHv2 70 Client: New Keys
33498 1477.185717000 10.30.0.4 172.20.0.138 SSHv2 70 Server: New Keys
With putty i got that the server uses "diffie-hellman-group1-sha1" as key-exchange algorithm, so i call
```
ssh.ConnectionInfo.KeyExchangeAlgorithms.Clear();
ssh.ConnectionInfo.KeyExchangeAlgorithms.Add("diffie-hellman-group1-sha1", typeof(Renci.SshNet.Security.KeyExchangeDiffieHellmanGroup1Sha1));
```
The Server says nothing in logfiles and since it is a proprietary router firmware, i have no chance to extend logging or something on the server.
The only settings i can change are
ssh server : enable / disable
ssh authtype : pap / chap
ssh version : sshv1 / sshv2
Actually it is
ssh server : enable
ssh authtype : pap
ssh version : sshv2
Thanks
Manuel
as proposed [here](https://sshnet.codeplex.com/discussions/576135) i open this issue for my problem.
I have one type of machines where i had no luck to connect via SSH.NET but putty has no problem.
SSH.NET says "Renci.SshNet.SshOperationTimeoutException" when i call the "Connect" method of SshClient.
I checked both, putty and SSH.NET connection via Wireshark and SSH.NET stuck before Key Exchange
SSH.NET:
> 32625 1429.943738000 172.20.0.138 10.30.0.4 TCP 66 40283→22 [SYN] Seq=0 Win=65535 Len=0 MSS=1460 WS=4 SACK_PERM=1
32626 1429.959065000 10.30.0.4 172.20.0.138 TCP 66 22→40283 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=16
32627 1429.959157000 172.20.0.138 10.30.0.4 TCP 54 40283→22 [ACK] Seq=1 Ack=1 Win=137072 Len=0
32629 1429.979514000 10.30.0.4 172.20.0.138 SSHv2 70 Server: Protocol (SSH-2.0-SSH.1.0)
32630 1429.989451000 172.20.0.138 10.30.0.4 SSHv2 92 Client: Protocol (SSH-2.0-Renci.SshNet.SshClient.0.0.1)
PuTTy:
> 33421 1474.605012000 172.20.0.138 10.30.0.4 TCP 66 40300→22 [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM=1
33422 1474.618777000 10.30.0.4 172.20.0.138 TCP 66 22→40300 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=16
33423 1474.618874000 172.20.0.138 10.30.0.4 TCP 54 40300→22 [ACK] Seq=1 Ack=1 Win=65536 Len=0
33424 1474.628474000 10.30.0.4 172.20.0.138 SSHv2 70 Server: Protocol (SSH-2.0-SSH.1.0)
33425 1474.628878000 172.20.0.138 10.30.0.4 SSHv2 82 Client: Protocol (SSH-2.0-PuTTY_Release_0.63)
33426 1474.628949000 172.20.0.138 10.30.0.4 SSHv2 726 Client: Key Exchange Init
33427 1474.638400000 10.30.0.4 172.20.0.138 TCP 60 22→40300 [ACK] Seq=17 Ack=29 Win=5840 Len=0
33428 1474.648490000 10.30.0.4 172.20.0.138 TCP 60 22→40300 [ACK] Seq=17 Ack=701 Win=8768 Len=0
33429 1474.649245000 10.30.0.4 172.20.0.138 SSHv2 302 Server: Key Exchange Init
33430 1474.697866000 172.20.0.138 10.30.0.4 TCP 54 40300→22 [ACK] Seq=701 Ack=265 Win=65280 Len=0
33449 1475.809952000 172.20.0.138 10.30.0.4 SSHv2 198 Client: Diffie-Hellman Key Exchange Init
33450 1475.851027000 10.30.0.4 172.20.0.138 TCP 60 22→40300 [ACK] Seq=265 Ack=845 Win=10112 Len=0
33496 1477.154579000 10.30.0.4 172.20.0.138 SSHv2 694 Server: Diffie-Hellman Key Exchange Reply
33497 1477.173475000 172.20.0.138 10.30.0.4 SSHv2 70 Client: New Keys
33498 1477.185717000 10.30.0.4 172.20.0.138 SSHv2 70 Server: New Keys
With putty i got that the server uses "diffie-hellman-group1-sha1" as key-exchange algorithm, so i call
```
ssh.ConnectionInfo.KeyExchangeAlgorithms.Clear();
ssh.ConnectionInfo.KeyExchangeAlgorithms.Add("diffie-hellman-group1-sha1", typeof(Renci.SshNet.Security.KeyExchangeDiffieHellmanGroup1Sha1));
```
The Server says nothing in logfiles and since it is a proprietary router firmware, i have no chance to extend logging or something on the server.
The only settings i can change are
ssh server : enable / disable
ssh authtype : pap / chap
ssh version : sshv1 / sshv2
Actually it is
ssh server : enable
ssh authtype : pap
ssh version : sshv2
Thanks
Manuel