Ansible not working #26890
-
Hi, I am new to teleport and deployed a single teleport proxy and connected some nodes with the shell script, which is provided in the webif under "Enroll new ressources". I can connect to these nodes in tunnled mode while using tsh, webif or teleport connect. After that I want to combine Ansible with teleport and found a guide for that already in the docs. But I cannot make a connection. Ansible itself shows this error: Then I troubleshoot the problem like described in the docs with the ssh client in verbose mode, I found out, that the teleport proxy tries to connect to the node with port 3022/tcp, so I added "-p 22" to the ssh client (so I think I have to adjust the ssh.cfg which was build by "tsh config" and add the "-p 22) But in the end it's still not working, because now, I can see in the logs from the teleport proxy, the error message: I hoped, that the teleport on the nodes will configure the openssh-server by itself and add the CA and Host Cert automatically. So if I can guess, I think I have to do manually the openssh config for the legacy ssh client? Before I can use ansible? Am I right? Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Which guide did you use? This one? https://goteleport.com/docs/server-access/guides/ansible/ What happens if you run The |
Beta Was this translation helpful? Give feedback.
-
I was having a similar issue, and this fixed it for me. Thanks so much for this! |
Beta Was this translation helpful? Give feedback.
-
The other thing worth trying if you have uppercase hostnames is to set (Teleport Cloud users can |
Beta Was this translation helpful? Give feedback.
The other thing worth trying if you have uppercase hostnames is to set
case_insensitive_routing: true
in theauth_service
section of your/etc/teleport.yaml
config file and restart.(Teleport Cloud users can
tsh login
to their cluster as a user witheditor
privileges, runtctl get cluster_networking_config > cnc.yaml
, and add the samecase_insensitive_routing: true
underspec:
and thentctl create -f cnc.yaml
)