Есть железка которая ВСЕГДА возвращает exit-code 1 при выходе из ssh, oxydized (точнее ruby) с таким не согласен и несмотря на то что у меня есть полный собранный конфиг в logs обрабатывать и сохоранять его отказывается:
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.110355 #28029] DEBUG -- : lib/oxidized/input/ssh.rb exit @ ... with expect: /^([\w.@-]+[#>]\s?)$/
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.110870 #28029] DEBUG -- socket[13204]: queueing packet nr 15 type 94 len 28
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.111026 #28029] DEBUG -- : lib/oxidized/input/ssh.rb: expecting [/^([\w.@-]+[#>]\s?)$/] at ...
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.205303 #28029] DEBUG -- : lib/oxidized/worker.rb: 1 jobs running in parallel
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.312053 #28029] DEBUG -- socket[13204]: sent 96 bytes
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.412710 #28029] DEBUG -- socket[13204]: read 464 bytes
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.413414 #28029] DEBUG -- socket[13204]: received packet nr 27 type 94 len 28
Apr 26 10:32:18 oxidized oxidized[28029]: I, [2024-04-26T10:32:18.413729 #28029] INFO -- net.ssh.connection.session[13254]: channel_data: 0 5b
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.414298 #28029] DEBUG -- socket[13204]: received packet nr 28 type 94 len 28
Apr 26 10:32:18 oxidized oxidized[28029]: I, [2024-04-26T10:32:18.414503 #28029] INFO -- net.ssh.connection.session[13254]: channel_data: 0 2b
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.414991 #28029] DEBUG -- socket[13204]: received packet nr 29 type 96 len 12
Apr 26 10:32:18 oxidized oxidized[28029]: I, [2024-04-26T10:32:18.415228 #28029] INFO -- net.ssh.connection.session[13254]: channel_eof: 0
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.415693 #28029] DEBUG -- socket[13204]: received packet nr 30 type 98 len 44
Apr 26 10:32:18 oxidized oxidized[28029]: I, [2024-04-26T10:32:18.415915 #28029] INFO -- net.ssh.connection.session[13254]: channel_request: 0 exit-status false
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.416422 #28029] DEBUG -- socket[13204]: received packet nr 31 type 97 len 12
Apr 26 10:32:18 oxidized oxidized[28029]: I, [2024-04-26T10:32:18.416614 #28029] INFO -- net.ssh.connection.session[13254]: channel_close: 0
Apr 26 10:32:18 oxidized oxidized[28029]: D, [2024-04-26T10:32:18.417175 #28029] DEBUG -- socket[13204]: queueing packet nr 16 type 97 len 28
Apr 26 10:32:18 oxidized oxidized[28029]: I, [2024-04-26T10:32:18.417336 #28029] INFO -- net.ssh.connection.session[13254]: ... delete channel 0 which closed locally and remotely