- commit
- 02f9a6d
- parent
- be972fa
- author
- Eric Bower
- date
- 2026-01-17 14:59:34 -0500 EST
fix: identity is always pubkey so check it as well
1 files changed,
+1,
-1
+1,
-1
1@@ -52,7 +52,7 @@ func Middleware(handler *CliHandler) pssh.SSHServerMiddleware {
2 if user.PublicKey != nil && user.PublicKey.Name != "" {
3 addition := user.PublicKey.Name
4 identity := sesh.Permissions().Extensions["identity"]
5- if identity != "" {
6+ if identity != "" && identity != "pubkey" {
7 addition = identity
8 }
9 userNameAddition = fmt.Sprintf("-%s", addition)