mirror of
https://github.com/1f349/orchid.git
synced 2025-04-14 07:45:50 +01: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{
|
Auth: []ssh.AuthMethod{
|
||||||
ssh.PublicKeys(a.sshKey),
|
ssh.PublicKeys(a.sshKey),
|
||||||
},
|
},
|
||||||
HostKeyCallback: ssh.FixedHostKey(hostPubKey),
|
HostKeyAlgorithms: []string{"ssh-ed25519"},
|
||||||
Timeout: time.Second * 30,
|
HostKeyCallback: ssh.FixedHostKey(hostPubKey),
|
||||||
|
Timeout: time.Second * 30,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("ssh dial: %w", err)
|
return fmt.Errorf("ssh dial: %w", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user