mirror of
https://github.com/1f349/orchid.git
synced 2025-02-05 22:16:42 +00:00
Only accept ed25519 kex
This commit is contained in:
parent
99c4c38bd5
commit
b642957aaf
@ -141,6 +141,9 @@ func (a *Agent) syncSingleAgentCertPair(startTime time.Time, row database.FindAg
|
|||||||
}
|
}
|
||||||
|
|
||||||
client, err := ssh.Dial("tcp", row.Address, &ssh.ClientConfig{
|
client, err := ssh.Dial("tcp", row.Address, &ssh.ClientConfig{
|
||||||
|
Config: ssh.Config{
|
||||||
|
KeyExchanges: []string{"curve25519-sha256"},
|
||||||
|
},
|
||||||
User: row.User,
|
User: row.User,
|
||||||
Auth: []ssh.AuthMethod{
|
Auth: []ssh.AuthMethod{
|
||||||
ssh.PublicKeys(a.sshKey),
|
ssh.PublicKeys(a.sshKey),
|
||||||
|
Loading…
Reference in New Issue
Block a user