Closed dotkrnl closed 7 months ago
Looks like a duplicate of #7980 and/or #16457
Solution in #7980 looks promising. If Teleport decides to keep the case-sensitive behavior, it would be good to replace %h
with %n
in the generated config.
Closing this as a duplicate.
This case is related to #15951 but is regarding the host name instead of the user name. It seems to be more critical in my two cents since it invalidates the config file generated by
tsh config
and should be considered a bug.Expected behavior:
ssh
with the config file generated withtsh config
.tsh
, especially intsh proxy ssh
, should be case-insensitive. This is because OpenSSH assumes the host name to be case-insensitive and converts%h
to lower case.Current behavior:
tsh config
generates aProxyCommand
that uses%r@%h:%p
intsh proxy ssh
.tsh proxy ssh
a lower-case%h
.tsh proxy ssh
complains about the host being non-exist in the system.ssh
using the config file generated bytsh config
.Bug details:
Teleport version
v14.2.0 on Cloud, not sure if affecting self-hosted version as well.
Recreation steps
tsh config
to generate a SSH configure file.ssh
with the config file to connect to the server with upper case character.ssh
fails:Direct dialing to nodes not found in the inventory is not supported.
Debug logs N/A