Commit be972fa

Eric Bower  ·  2026-01-17 14:48:15 -0500 EST
parent bc6e0bf
fix(ssh): only use pubkey name if not ssh cert
1 files changed,  +1, -1
M pkg/shared/ssh.go
+1, -1
1@@ -107,7 +107,7 @@ func (r *SshAuthHandler) PubkeyAuthHandler(conn ssh.ConnMetadata, key ssh.Public
2 		return nil, fmt.Errorf("username is not set")
3 	}
4 
5-	if user.PublicKey != nil && user.PublicKey.Name != "" {
6+	if authed.Identity == "public" && user.PublicKey != nil && user.PublicKey.Name != "" {
7 		authed.Identity = user.PublicKey.Name
8 	}
9