Only accept ed25519 kex

This commit is contained in:
Melon 2025-01-31 23:23:30 +00:00
parent 99c4c38bd5
commit b642957aaf
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -141,6 +141,9 @@ func (a *Agent) syncSingleAgentCertPair(startTime time.Time, row database.FindAg
}
client, err := ssh.Dial("tcp", row.Address, &ssh.ClientConfig{
Config: ssh.Config{
KeyExchanges: []string{"curve25519-sha256"},
},
User: row.User,
Auth: []ssh.AuthMethod{
ssh.PublicKeys(a.sshKey),