mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-01 09:32:08 +00:00
tailcfg, ssh/tailssh: make SSHUser value '=' map ssh-user to same local-user
Updates #3802 Change-Id: Icde60d4150ca15c25d615a4effb3d3c236f020a8 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
21445b56a5
commit
f7e976db55
@@ -1573,6 +1573,8 @@ type SSHRule struct {
|
||||
// actual user that's logged in.
|
||||
// If the map value is the empty string (for either the
|
||||
// requested SSH user or "*"), the rule doesn't match.
|
||||
// If the map value is "=", it means the ssh-user should map
|
||||
// directly to the local-user.
|
||||
// It may be nil if the Action is reject.
|
||||
SSHUsers map[string]string `json:"sshUsers"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user