-
Hi all I have a question about role and logins. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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: 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: nobody Assign both these roles to your Teleport user, then this will then show the correct login against the correct server. |
Beta Was this translation helpful? Give feedback.
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 userubuntu
, andserver2
which requires the usernobody
- you'd set up your Teleport SSH service configs like this:server1:
server2:
You'd then make two roles: