Add HostKeyAlgorithms field

This commit is contained in:
Melon 2025-02-01 00:51:40 +00:00
parent b642957aaf
commit 432c907303
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -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)