Display SSH connection errors #90
Labels
feature
Enhancement/New feature
has-workaround
This issue can temporarily be fixed by a hack/workaround
visuals
Related to the user-facing output of tbot
Right now, when an SSH connection fails, no useful error message is shown. If a user wants to find out why the connection failed, they have to retry in channel-debug mode (
newbot -v
) to see the error printed by the ssh command.Ideally, tbot should detect the connection failure and log the error message before raising an exception. This is a bit tricky because the error shows up right in a spot where we also expect data that we don't want to log to console (shell initialization).
A possible solution may be to detect a closed channel during ssh initialization and only log output then. This may have timing problems, though.
The text was updated successfully, but these errors were encountered: