Skip to content

Ansible over teleport not working #37731

Answered by webvictim
BeoKool asked this question in Q&A
Discussion options

You must be logged in to vote

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 to aht-hrm-02.aht-viettel, but the hostname Teleport sees connected is aht-hrm-02.AHT-VIETTEL and it treats these as two completely different hostnames.

Try setting this in your /etc/teleport.yaml config file on the server which runs your Teleport auth service, then restarting Teleport, and running ssh -vvv -F ./ssh.cfg aht-admin@aht-hrm-02.AHT-VIETTEL again:

auth_service:
  enabled: true
  case_insensitive_routing: true

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@BeoKool
Comment options

@stevenGravy
Comment options

@BeoKool
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by webvictim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants