mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-19 11:00:37 +08:00
Fixes https://github.com/gravitational/teleport/issues/60055 and https://github.com/gravitational/teleport/issues/53267. Errors emitted when access is denied or hosts are missing from the inventory have been updated to be clearer to end users. The current error when connecting to a host that does not exist ```bash $ tsh ssh tim@fake-host ERROR: failed connecting to host fake-host:0: failed to receive cluster details response failed to dial target host direct dialing to nodes not found in inventory is not supported ``` has been updated to remove ancillary details that have zero meaning to anyone other than a Teleport developer and better clarify the host does not exist. ``` $ tsh ssh tim@fake-host ERROR: failed connecting to host fake-host: target host fake-host is offline or does not exist ``` The access denied error ``` $ tsh ssh tim@server01 uptime ERROR: access denied to tim connecting to server01:0 ``` has had a relatively minor and possibly unnoticed change to omit the port from the dial target. ``` $ tsh ssh tim@server01 uptime ERROR: access denied to tim connecting to server01 ``` fix: use net.SplitHostPort instead of strings.Cut