I'm trying to get config from the switch using oxidized, but my switch gives an error message:
"disconnected: protocol error: rcvd type 0 (2)" I'm not sure what causes this error, my ERS switches does not have this problem. The log below is from a VSP-9012 (4.2.1.5) (GA)
IP INFO kex:chosen algorithms for client->server: encryption:aes128-cbc mac:hmac-sha1 compression:none
CP1 [03/07/19 10:17:35.280:CET] 0x0003c77a 00000000 GlobalRouter IP INFO kex:chosen algorithms for server->client: encryption:aes128-cbc mac:hmac-sha1 compression:none
CP1 [03/07/19 10:17:35.413:CET] 0x000d8602 00000000 GlobalRouter SSH INFO Disconnecting: protocol error: rcvd type 0
CP1 [03/07/19 10:18:29.349:CET] 0x000d8603 00000000 GlobalRouter SSH INFO Connection from 192.168.195.57 port 44112
CP1 [03/07/19 10:18:29.349:CET] 0x000d858b 00000000 GlobalRouter SSH INFO New connection from ip 192.168.195.57 port 44112
CP1 [03/07/19 10:18:29.350:CET] 0x000d8603 00000000 GlobalRouter SSH INFO Enabling compatibility mode for protocol 2.0
CP1 [03/07/19 10:18:29.352:CET] 0x0003c77a 00000000 GlobalRouter IP INFO kex:chosen algorithms for client->server: encryption:aes128-cbc mac:hmac-sha1 compression:none
CP1 [03/07/19 10:18:29.352:CET] 0x0003c77a 00000000 GlobalRouter IP INFO kex:chosen algorithms for server->client: encryption:aes128-cbc mac:hmac-sha1 compression:none
CP1 [03/07/19 10:18:29.486:CET] 0x000d8602 00000000 GlobalRouter SSH INFO bad pkalg ssh-rsa
From the last line in the log it mentions bad pkalgo ssh-rsa, does the switch not support this encryption?
the 'sh ssh global ' displays
total Active Sessions : 1
version : v2only
port : 22
max-sessions : 4
timeout : 60
action rsa-keygen : rsa-keysize 1024
action dsa-keygen : dsa-keysize 1024
rsa-auth : true
dsa-auth : true
pass-auth : true
enable : true
client enable : true
oxidized error message:
1x.2x.z.10x raised Net::SSH::Disconnect with msg "disconnected: protocol error: rcvd type 0 (2)"
D, [2019-03-07T10:17:35.401064 #2547] DEBUG -- : lib/oxidized/node.rb: Oxidized::SSH failed for server_2.no
D, [2019-03-07T10:17:35.401501 #2547] DEBUG -- : lib/oxidized/job.rb: Config fetched for server_2.no at 2019-03-07 09:17:35 UTC
W, [2019-03-07T10:17:36.242880 #2547] WARN -- : VSP9K/server_2.no status no_connection, retries exhausted, giving up
does anyone have suggestion of what is going on here? I have asked in oxidized forum and been told to update oxidized to the newst version, but still the same problme. I suspect is something with the switch config