mirror of https://github.com/harness/drone.git
fix ssh key fingerprint (#2076)
parent
a1ce21aa7c
commit
ef18a7aff2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue