diff --git a/ssh_toolkit/errors.go b/ssh_toolkit/errors.go index 926be98b03..976e9ebf7c 100644 --- a/ssh_toolkit/errors.go +++ b/ssh_toolkit/errors.go @@ -6,17 +6,26 @@ var errorsWhenSSHClientNeedToBeRecreated = []string{ "dial timeout", "i/o timeout", "session creation timeout", - "failed to dial ssh", + "session failed", + "failed to dial", + "unable to dial", "handshake failed", + "password auth failed", + "keyboard-interactive failed", "unable to authenticate", + "server got error", + "client could not authenticate", "connection refused", "use of closed network connection", - "rejected: too many authentication failures", - "rejected: connection closed by remote host", - "rejected: connect failed", + "many authentication failures", + "connection closed by remote host", + "connect failed", "open failed", "handshake failed", + "subsystem request failed", "EOF", + "broken pipe", + "closing write end of pipe", } func isErrorWhenSSHClientNeedToBeRecreated(err error) bool {