mirror of
https://github.com/1f349/orchid.git
synced 2025-02-05 22:16:42 +00:00
Add HostKeyAlgorithms field
This commit is contained in:
parent
b642957aaf
commit
432c907303
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user