Commit 02f9a6d
Eric Bower
·
2026-01-17 14:59:34 -0500 EST
parent be972fa
fix: identity is always pubkey so check it as well
1 files changed,
+1,
-1
+1,
-1
| ... | ... | @@ -52,7 +52,7 @@ func Middleware(handler *CliHandler) pssh.SSHServerMiddleware { | |
| 52 | 52 | if user.PublicKey != nil && user.PublicKey.Name != "" { | |
| 53 | 53 | addition := user.PublicKey.Name | |
| 54 | 54 | identity := sesh.Permissions().Extensions["identity"] | |
| 55 | - | if identity != "" { | |
| 55 | + | if identity != "" && identity != "pubkey" { | |
| 56 | 56 | addition = identity | |
| 57 | 57 | } | |
| 58 | 58 | userNameAddition = fmt.Sprintf("-%s", addition) |