因此,我使用一个SSH.Net库从我的.Net应用程序中做一些事情来触发远程Mac设备上的东西。更改用户密码后,我设法破坏了功能,system.log向我展示了以下消息:
WARNING: no suitable primes in /etc/ssh/primes 图书馆本身给了我一条信息:
An exception of type 'Renci.SshNet.Common.SshAuthenticationException' occurred in Renci.SshNet.dll but was not handled in user code
Additional information: No suitable authentication method found to complete authentication.SSHD调试提供了以下消息:
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 6 out 6 newsock 6 pipe -1 sock 9
debug1: inetd sockets after dupping: 5, 5
Connection from 172.16.115.19 port 44670 on 192.168.202.110 port 2222
debug1: Client protocol version 2.0; client software version Renci.SshNet.SshClient.0.0.1
debug1: no match: Renci.SshNet.SshClient.0.0.1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
debug2: fd 5 setting O_NONBLOCK
debug2: Network child is on pid 569
debug1: list_hostkey_types: [preauth]
No supported key exchange algorithms [preauth]
debug1: do_cleanup [preauth]
debug1: monitor_read_log: child log fd closed
debug1: do_cleanup
debug1: Killing privsep child 569
debug1: audit_event: unhandled event 12我猜这与密码更改后更改的密钥有关,但我在这里不能百分之百确定。
发布于 2016-03-26 18:03:13
我猜这与密码更改后更改的密钥有关,但我在这里不能百分之百确定。
不是的。
No supported key exchange algorithms [preauth]讨论密钥交换算法。日志是不完整的(-ddd会告诉您更多),从旧版本来看,在这个级别上不太详细。但是我可以猜到您的服务器不再支持SSH.Net库提供的方法了。
首先,我会去升级图书馆。第二种可能是允许在服务器上使用遗留的Kex算法,例如:
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp 256,ecdh-sha2-nistp 384,ecdh-sha2-nistp384 521,diffie-hellman-group-exchange-sha256,diffie-hellman-group 14-Sha1,diffie-hellman-group-group-sha1 1,diffie-hellman-group-group-sha1
在您的sshd_config中(基本上添加了diffie-hellman-group1-sha1和diffie-hellman-group-exchange-sha1,它们现在不被认为是安全的!)
https://stackoverflow.com/questions/36240869
复制相似问题