From 5370758c30f0d7ce83fee10cdc77d649753f71ed Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sun, 21 Dec 2025 09:50:11 -0500 Subject: [PATCH] Add more debug logging --- libplugin/skel/skel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libplugin/skel/skel.go b/libplugin/skel/skel.go index 4017f38b..438f12a4 100644 --- a/libplugin/skel/skel.go +++ b/libplugin/skel/skel.go @@ -193,6 +193,8 @@ func (p *SkelPlugin) PasswordCallback(conn libplugin.ConnMetadata, password []by } func (p *SkelPlugin) PublicKeyCallback(conn libplugin.ConnMetadata, publicKey []byte) (*libplugin.Upstream, error) { + log.Infof("PublicKeyCallback called for user %s, key len=%d", conn.User(), len(publicKey)) + pubKey, err := ssh.ParsePublicKey(publicKey) if err != nil { return nil, err @@ -272,11 +274,13 @@ func (p *SkelPlugin) PublicKeyCallback(conn libplugin.ConnMetadata, publicKey [] } // Pass the client's public key so their fingerprint can be included in the upstream username + log.Infof("Creating upstream with client key len=%d", len(publicKey)) u, err := p.createUpstreamWithClientKey(conn, to, nil, publicKey) if err != nil { return nil, err } + log.Infof("Upstream created with username=%s", u.UserName) return u, nil }