首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >警告:更改用户密码后/etc/ssh/primes消息中没有合适的素数

警告:更改用户密码后/etc/ssh/primes消息中没有合适的素数
EN

Stack Overflow用户
提问于 2016-03-26 16:59:40
回答 1查看 1.5K关注 0票数 0

因此,我使用一个SSH.Net库从我的.Net应用程序中做一些事情来触发远程Mac设备上的东西。更改用户密码后,我设法破坏了功能,system.log向我展示了以下消息:

代码语言:javascript
复制
 WARNING: no suitable primes in /etc/ssh/primes 

图书馆本身给了我一条信息:

代码语言:javascript
复制
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调试提供了以下消息:

代码语言:javascript
复制
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

我猜这与密码更改后更改的密钥有关,但我在这里不能百分之百确定。

EN

回答 1

Stack Overflow用户

发布于 2016-03-26 18:03:13

我猜这与密码更改后更改的密钥有关,但我在这里不能百分之百确定。

不是的。

代码语言:javascript
复制
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-sha1diffie-hellman-group-exchange-sha1,它们现在不被认为是安全的!)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36240869

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档