diff --git a/lib/ssh_scan/client.rb b/lib/ssh_scan/client.rb index 697d7be3..ac83c227 100644 --- a/lib/ssh_scan/client.rb +++ b/lib/ssh_scan/client.rb @@ -98,6 +98,8 @@ def get_kex_result(kex_init_raw = @kex_init_raw) return nil end + kex_exchange_init = nil + begin Timeout::timeout(@timeout) { @sock.write(kex_init_raw)