diff --git a/ssh/client.go b/ssh/client.go index 6a99dca7bb..252e30c9fa 100644 --- a/ssh/client.go +++ b/ssh/client.go @@ -77,8 +77,9 @@ func (client *Client) Run(command string) (Output, error) { if i == maxDialAttempts { return output, errors.New("Max SSH/TCP dial attempts exceeded") } + } else { + break } - break } session, err := conn.NewSession()