teleport/vendor
Ev Kontsevoy b834c1020c Better error handling for connecting via reverse tunnel
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.
2016-12-18 21:30:24 -08:00
..
github.com Better error handling for connecting via reverse tunnel 2016-12-18 21:30:24 -08:00
golang.org/x Added utf-8 encoding of terminal streams 2016-04-29 00:55:58 -07:00
gopkg.in Added utf-8 encoding of terminal streams 2016-04-29 00:55:58 -07:00