From 7781d5b1353a6f0fcc4ca1beffae2607a4ed10b0 Mon Sep 17 00:00:00 2001 From: Jesse Shapiro Date: Sat, 22 Oct 2016 09:49:26 -0400 Subject: [PATCH] sshd: Add SHA256 prefix to pubkey fingerprints (#220) Fixes #214 --- sshd/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshd/auth.go b/sshd/auth.go index 163caa0..2fc86fa 100644 --- a/sshd/auth.go +++ b/sshd/auth.go @@ -68,5 +68,5 @@ func MakeNoAuth() *ssh.ServerConfig { // See: https://anongit.mindrot.org/openssh.git/commit/?id=56d1c83cdd1ac func Fingerprint(k ssh.PublicKey) string { hash := sha256.Sum256(k.Marshal()) - return base64.StdEncoding.EncodeToString(hash[:]) + return "SHA256:" + base64.StdEncoding.EncodeToString(hash[:]) }