-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Description
Version: nightly (since 2f1c388, electron version update to 25.x.x) (since 555d3c8, ssh2 version update to 1.14.0)
Platform: tested on Windows, Linux
Plugins: none
Describe the problem:
Since this commit 2f1c388 (electron version update to 25.x.x) 555d3c8 (ssh2 version update to 1.14.0), I'm not able to connect to Cisco device using kex algorithm diffie-hellman-group1-sha1.
SSH Connecting to x.x.x.x
SSH ! Agent auth selected, but no running agent is detected
X Unknown DH group
No error in Tabby's log.
Logs I collected on Cisco side:
2986948: Aug 16 11:56:58.211: SSH1: starting SSH control process
2986949: Aug 16 11:56:58.211: SSH1: sent protocol version id SSH-2.0-Cisco-1.25
2986950: Aug 16 11:56:58.216: SSH1: protocol version id is - SSH-2.0-ssh2js1.14.0
2986951: Aug 16 11:56:58.216: SSH2 1: kexinit sent: encryption algo = aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
2986952: Aug 16 11:56:58.216: SSH2 1: kexinit sent: mac algo = hmac-sha1,hmac-sha1-96
2986953: Aug 16 11:56:58.216: SSH2 1: send:packet of length 368 (length also includes padlen of 5)
2986954: Aug 16 11:56:58.217: SSH2 1: SSH2_MSG_KEXINIT sent
2986955: Aug 16 11:56:58.220: SSH2 1: ssh_receive: 536 bytes received
2986956: Aug 16 11:56:58.220: SSH2 1: input: total packet length of 1344 bytes
2986957: Aug 16 11:56:58.220: SSH2 1: partial packet length(block size)8 bytes,needed 1336 bytes,maclen 0
2986958: Aug 16 11:56:58.220: SSH2 1: ssh_receive: 536 bytes received
2986959: Aug 16 11:56:58.220: SSH2 1: partial packet length(block size)8 bytes,needed 1336 bytes,maclen 0
2986960: Aug 16 11:56:58.220: SSH2 1: ssh_receive: 272 bytes received
2986961: Aug 16 11:56:58.220: SSH2 1: partial packet length(block size)8 bytes,needed 1336 bytes, maclen 0
2986962: Aug 16 11:56:58.220: SSH2 1: input: padlength 11 bytes
2986963: Aug 16 11:56:58.220: SSH2 1: SSH2_MSG_KEXINIT received
2986964: Aug 16 11:56:58.220: SSH2 1: kex: client->server enc:3des-cbc mac:hmac-sha1
2986965: Aug 16 11:56:58.220: SSH2 1: kex: server->client enc:3des-cbc mac:hmac-sha1
2986966: Aug 16 11:56:58.220: SSH2 1: Using kex_algo = diffie-hellman-group1-sha1
2986967: Aug 16 11:56:58.228: SSH2 1: expecting SSH2_MSG_KEXDH_INIT
2986968: Aug 16 11:56:58.244: SSH2 1: SSH ERROR closing the connection
2986969: Aug 16 11:56:58.244: SSH2 1: send:packet of length 72 (length also includes padlen of 7)
2986970: Aug 16 11:56:58.245: %SSH-4-SSH2_UNEXPECTED_MSG: Unexpected message type has arrived. Terminating the connection from x.x.x.x
2986971: Aug 16 11:56:58.341: SSH1: Session disconnected - error 0x00
To Reproduce:
- Setup a Cisco switch/router which offer diffie-hellman-group1-sha1 kex algorithm (tested on Cisco IOS 12.2(55)SE10 & IOS-XE 03.06.05.E version)
- Try to connect to the device with tabby
- You should notice the error sent above
I didn't have the time to test connection with diffie-hellman-group1-sha1 kex on other ssh server than Cisco yet. I also take a quick view on ssh2 issues but didn't found any which could be related to this problem. I will try to do more tests and collect more info in the next few days.