mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 17:23:22 +00:00
b834c1020c
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. |
||
---|---|---|
.. | ||
github.com | ||
golang.org/x | ||
gopkg.in |