flyingcircusio / batou

batou is a universal, fractal deployment utility using Python.
https://batou.readthedocs.org
Other
47 stars 12 forks source link

Provide more SSH output if connection fails #451

Open Ma27 opened 2 months ago

Ma27 commented 2 months ago

I've seen output like this a few times already

redacted00: Connecting via ssh (1/3)
redacted01: Connecting via ssh (2/3)
redacted10: Connecting via ssh (3/3)
Connection closed by UNKNOWN port 65535
Connection closed by UNKNOWN port 65535
Connection closed by UNKNOWN port 65535
Connection closed by UNKNOWN port 65535
Connection closed by UNKNOWN port 65535
Connection closed by UNKNOWN port 65535
Connection closed by UNKNOWN port 65535
ERROR: Unexpected exception
<traceback>
    execnet.gateway_bootstrap.HostNotFound: redacted00.fcio.net

There are a few causes for that issue:

The output shown above makes diagnosing this very hard. At the very least I'd like to see the error from SSH.

Additionally