-
|
I am trying to use Ansible with Teleport and encountering the current error when running the Ansible command, facing this issue |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
So this means it's attempting node names that aren't registered. Are you using OpenSSH servers? Please see https://goteleport.com/docs/server-access/guides/openssh/openssh/ for registering the nodename and confirm with |
Beta Was this translation helpful? Give feedback.
-
|
The issue here is that node names and routing in Teleport are case-sensitive by default. Your cluster name is Try setting this in your auth_service:
enabled: true
case_insensitive_routing: true |
Beta Was this translation helpful? Give feedback.

The issue here is that node names and routing in Teleport are case-sensitive by default.
Your cluster name is
AHT-VIETTEL, but SSH (and thus Ansible) normalises every hostname to lowercase when trying to connect to it. As such, SSH is actually trying to connect toaht-hrm-02.aht-viettel, but the hostname Teleport sees connected isaht-hrm-02.AHT-VIETTELand it treats these as two completely different hostnames.Try setting this in your
/etc/teleport.yamlconfig file on the server which runs your Teleport auth service, then restarting Teleport, and runningssh -vvv -F ./ssh.cfg aht-admin@aht-hrm-02.AHT-VIETTELagain: