Closed Kurtas closed 4 years ago
The reason is that the server is disconnecting before sending a response. This is a known issue.
Hi mscdex,
thanks for a quick answer! So there isn't a way how to fix it?
For example in both logs is line DEBUG: Client: password auth failed
you can't emit an event in this case?
The workaround is to listen for the 'close'
event on the connection object.
For example in both logs is line
DEBUG: Client: password auth failed
you can't emit an event in this case?
No, because as you can see in the debug log, there are other authentication methods being tried after that. As I said, this (no 'error'
on abrupt disconnect) is a known issue.
Thank you @mscdex for your time & support. Thanks of your hint that there is a next authentication method, I'm explored debug log again and I found a solution.
The solution if someone was looking for it in the future:
I noticed that I'm sending a response in "keyboard-interactive"
event, if I sent the wrong password then I get again same password prompt and in this case I will emit "error"
manually event and I'm able to try next credentials.
Hi,
I found a problem with SSH connection to HP Aruba Switch 2920 where I don't get
error
event when an authentication fails, but it works for other switches, for example, I geterror
event with errorAll configured authentication methods failed
for Cisco IOS.Do you have any idea?
BTW: I using v8.0.5
See below logs from both devices
Debug log from HP ArubaSw 2920
Debug log for CISCO IOS