Apr 19, 2012 at 7:59 AM
Edited Apr 19, 2012 at 9:39 AM
|
Hello, I cant connect to routerOS ssh. Putty works fine, Log:
2012-04-19 09:55:33 Looking up host "88.146.225.76"
2012-04-19 09:55:33 Connecting to 88.146.225.76 port 22
2012-04-19 09:55:33 Server version: SSH-1.99-OpenSSH_2.3.0_Mikrotik_v2.9
2012-04-19 09:55:33 We believe remote version has SSH-2 rekey bug
2012-04-19 09:55:33 Using SSH protocol version 2
2012-04-19 09:55:33 We claim version: SSH-2.0-PuTTY_Snapshot_2010_07_28:r8971
2012-04-19 09:55:33 Doing Diffie-Hellman group exchange
2012-04-19 09:55:33 Doing Diffie-Hellman key exchange with hash SHA-1
2012-04-19 09:55:33 Host key fingerprint is:
2012-04-19 09:55:33 ssh-dss 1024 5e:1b:01:8b:6a:c9:29:d6:ce:63:2f:ee:d7:d4:1f:44
2012-04-19 09:55:33 Initialised AES-256 CBC client->server encryption
2012-04-19 09:55:33 Initialised HMAC-SHA1 client->server MAC algorithm
2012-04-19 09:55:33 Initialised AES-256 CBC server->client encryption
2012-04-19 09:55:33 Initialised HMAC-SHA1 server->client MAC algorithm
2012-04-19 09:55:35 Sent password
2012-04-19 09:55:35 Access granted
2012-04-19 09:55:35 Opened channel for session
2012-04-19 09:55:35 Allocated pty (ospeed 38400bps, ispeed 38400bps)
2012-04-19 09:55:35 Started a shell/command
But SSH.NET throws error "Session operation has timed out" and with #debug support shows:
SshNet.Logging Verbose: 1 : Initiating connect to '88.146.225.76:22'.
SshNet.Logging Verbose: 1 : Server version '1.99' on 'OpenSSH_2.3.0_Mikrotik_v2.9'.
SshNet.Logging Verbose: 1 : ReceiveMessage from server: 'KeyExchangeInitMessage': 'SSH_MSG_KEXINIT'.
'AmigoKonfiguratorV2.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AmigoKonfiguratorV2.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AmigoKonfiguratorV2.vshost.exe' (Managed (v4.0.30319)): Loaded 'Anonymously Hosted DynamicMethods Assembly'
SshNet.Logging Verbose: 1 : SendMessage to server 'KeyExchangeInitMessage': 'SSH_MSG_KEXINIT'.
SshNet.Logging Verbose: 1 : SendMessage to server 'KeyExchangeDhGroupExchangeRequest': 'SSH_MSG_KEX_DH_GEX_REQUEST'.
SshNet.Logging Verbose: 1 : ReceiveMessage from server: 'DisconnectMessage': 'SSH_MSG_DISCONNECT'.
SshNet.Logging Verbose: 1 : Disconnect received.
The thread '' (0x23c) has exited with code 0 (0x0).
The thread '' (0xb80) has exited with code 0 (0x0).
A first chance exception of type 'Renci.SshNet.Common.SshOperationTimeoutException' occurred in Renci.SshNet.dll
I created demo account. IP adress is 88.146.225.76, username/pass is demo. Can you look at that? Thank you!.
EDIT:
newer version of routeros (5.0+) works fine... But i need support for older versions too :/ Thanks for help.
|