Open Joerger opened 1 week ago
I suspect this might be the same issue as https://github.com/gravitational/teleport/issues/42315, which @bl-nero found during a prior test plan.
I suspect this might be the same issue as #42315, which @bl-nero found during a prior test plan.
The issue seems to be that ssh
makes the hostname lower case in the ProxyCommand, and Teleport then doesn't recognize it.
debug1: Executing proxy command: exec "/Users/bjoerger/src/gravitational/teleport/build/tsh" proxy ssh --cluster=root.example.com --proxy=root.example.com:3080 bjoerger@brians-mbp-2.root.example.com:22
...
ERROR: failed connecting to host brians-mbp-2:22: failed to receive cluster details response
failed to dial target host
direct dialing to nodes not found in inventory is not supported
Calling tsh proxy directly with the actual node name works:
> tsh proxy ssh --cluster=root.example.com --proxy=root.example.com:3080 bjoerger@Brians-MBP-2.root.example.com:22
SSH-2.0-Go
The other issue is related, as it limits what hostnames you can change to while still having a valid openssh cert.
Connecting to an agentless node with
ssh
can fail due to to capitalization in hostnames not being respected. However,teleport join openssh
automatically sets the hostname to$(hostname)
even if it includes capitalized letters.I have to manually
tctl edit nodes/Brians-MBP-2
to change the name to lower case and fix it, or use another join method.