mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-04 02:21:02 +08:00
Prior to this fix Teleport would not relay proxy errors from remote clusters. In other words, the following command: ``` $ tsh --cluster=remote ssh non-existing-host ``` Would print an error like: "Cannot find a remote tunnel connection. ssh subsystem request failed" Insead, it should say something like: "dial non-existing-host error: no such host" This commit fixes it. It works by: - Sending net.Dial() error from the remote proxy back via stderr over reverse tunnel. - Carefully handling this error to distinguish it from tunnel-related network errors.