access denied to user connecting to X-X-X-X-X #20383
-
When I try to connect to a server through the Teleport web UI by clicking connect and entering an OS user in the text box, I get the following error:
However, when I select the user through the drop-down menu that appears under the text box, the connection succeeds. But for some reason, the list of users is incomplete, and often doesn't have the user I need to connect to the server in the menu, or has users for another server. This leaves me unable to connect to most of my servers. tsh/tctl version string:
I'm running Teleport in Docker and the servers I'm connecting to are various OSes, mostly Debian and Ubuntu. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
The error is appearing because your Teleport RBAC permissions do not currently grant you access to the servers you're trying to connect to as the login you're trying to use. Can you share the content of all roles that are assigned to your Teleport user? The output of |
Beta Was this translation helpful? Give feedback.
-
I have the
and the
The output of
|
Beta Was this translation helpful? Give feedback.
-
I was getting same error and it turns out it is because of server's time wasn't sync with teleport proxy. I installed ntp and synced time and problem solved. Hope this helps to anybody else. |
Beta Was this translation helpful? Give feedback.
Oh sorry I just forgot to enable websockets in my reverse proxy conf. It seems to be working now. Thanks for your help!