From 432c90730364f39742d1521fe19140743b4cc98a Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Sat, 1 Feb 2025 00:51:40 +0000 Subject: [PATCH] Add HostKeyAlgorithms field --- agent/agent.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index b3f8987..9186289 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -148,8 +148,9 @@ func (a *Agent) syncSingleAgentCertPair(startTime time.Time, row database.FindAg Auth: []ssh.AuthMethod{ ssh.PublicKeys(a.sshKey), }, - HostKeyCallback: ssh.FixedHostKey(hostPubKey), - Timeout: time.Second * 30, + HostKeyAlgorithms: []string{"ssh-ed25519"}, + HostKeyCallback: ssh.FixedHostKey(hostPubKey), + Timeout: time.Second * 30, }) if err != nil { return fmt.Errorf("ssh dial: %w", err)