0
我是GoLang的新手,我嘗試使用go連接到遠程服務器。不過,我不斷收到以下錯誤GoLang:「沒有通用的密鑰交換算法」錯誤
Failed to dial: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve2****-sh****@libssh.org ****-sha*-nis****ecdh-sha2-nistp384 ecdh-sha2-nistp**** diffie-hellman-group14-sha1 diffie-hellman-group1-sha1], server offered: [diffie-hellman-group-exchange-sha***]
以下
的是,我用它來連接
config := &ssh.ClientConfig{
User: user,
HostKeyCallback: nil,
Auth: []ssh.AuthMethod{
publicKey,
},
}
如果可能,你能告訴我如何做/任何這些?我對golang和網絡編程非常新,我很感激任何幫助。謝謝 – user1851006