Skip to content

Role, multiples logins #55864

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

You must be logged in to vote

You would need separate roles to be able to do this, and you'd need to label each server with the login you wanted to use.

Say you have two servers: server1 which requires the user ubuntu, and server2 which requires the user nobody - you'd set up your Teleport SSH service configs like this:

server1:

ssh_service:
  enabled: true
  labels:
    username: ubuntu

server2:

ssh_service:
  enabled: true
  labels:
    username: nobody

You'd then make two roles:

kind: role
metadata:
  name: username-ubuntu
spec:
  allow:
    logins:
    - ubuntu
    node_labels:
      username: ubuntu
kind: role
metadata:
  name: username-nobody
spec:
  allow:
    logins:
    - nobody
    node_labels:
      username: 

Replies: 1 comment

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
2 participants