From ef18a7aff275c8c83cdefd19fd95f0ef95710eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Ga=C4=87e=C5=A1a?= Date: Mon, 3 Jun 2024 08:40:02 +0000 Subject: [PATCH] fix ssh key fingerprint (#2076) --- app/services/publickey/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/publickey/parse.go b/app/services/publickey/parse.go index 9ad965892..4a8d61de3 100644 --- a/app/services/publickey/parse.go +++ b/app/services/publickey/parse.go @@ -92,7 +92,7 @@ func (key KeyInfo) MatchesKey(otherKey gossh.PublicKey) bool { func (key KeyInfo) Fingerprint() string { sum := sha256.New() sum.Write(key.Key.Marshal()) - return base64.StdEncoding.EncodeToString(sum.Sum(nil)) + return "SHA256:" + base64.RawStdEncoding.EncodeToString(sum.Sum(nil)) } func (key KeyInfo) Type() string {