sshd preauth孩子被信号终止31

时间:2018-01-15 00:53:39

标签: ubuntu sshd

我前几天升级到ubuntu 18.04,从那时起我就不能再次使用我的机器了。 auth.log告诉我:

Jan 15 08:41:15 pc207 sshd[5358]: Accepted publickey for oscar from 10.60.0.15 port 42004 ssh2: RSA SHA256:59dtkmxMKMJG22+SQEoo7D55JSr+xlFjRyLMclLY210
Jan 15 08:41:15 pc207 sshd[5358]: debug1: monitor_child_preauth: oscar has been authenticated by privileged process
Jan 15 08:41:16 pc207 sshd[5358]: debug1: monitor_read_log: child log fd closed
Jan 15 08:41:16 pc207 sshd[5358]: fatal: privsep_preauth: preauth child terminated by signal 31

虽然ssh -vvv localhost告诉我:

debug1: Authentication succeeded (publickey).
Authenticated to localhost ([127.0.0.1]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting no-more-sessions@openssh.com
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: send packet: type 1
packet_write_wait: Connection to 127.0.0.1 port 22: Broken pipe

Google告诉我将UsePrivilegeSeparation设置为yesnosandbox,但它什么都不做。我的/etc/ssh/sshd未经修改。

编辑:我将我的个人笔记本电脑升级到18.04(HP Elitebook 8570w,完全与上面的固定式戴尔无关),当我尝试ssh到我的笔记本电脑时发生了完全相同的错误; preauth孩子被信号31终止。

4 个答案:

答案 0 :(得分:0)

可能是防火墙,你可以测试一下:

sudo ufw allow 22

答案 1 :(得分:0)

希望可以帮助遇到相同问题的人,这个问题使我至少挣扎了两个星期……最后通过将“沙盒”值修改为“是”来解决此问题,我不知道逻辑,如果有人可以帮助解释为什么这样做有效,将不胜感激: 在sshd配置文件(/ etc / ssh / sshd_config)中,您可以找到以下行:

来自:

UsePrivilegeSeparation sandbox # Default for new installations.

UsePrivilegeSeparation yes

答案 2 :(得分:0)

我为这个错误苦苦挣扎了好几天。没有一个解决方案对我有用。我终于更新了ssh服务器并连接了它。真是可惜希望我有一个更好的答案。

答案 3 :(得分:-2)

升级后,我的debian服务器上现在出现了相同的错误。 经过几个小时的挖掘(上述解决方案无济于事),我发现我正在使用lilo(由于在这台非常旧的服务器上进行了扫描),并且内核版本未更新。在过去的几天里,我从sarge变成了靶心(老实说,只经历了一次痛苦,并拥有稳定的服务器,希望再过15年:)),问题是在此期间lilo.conf并未更新,所以即使新测试在旧版2.6上运行。因此,在更新lilo.conf并使用新内核重新启动之后,它开始工作。 顺便说一句,即使上面的sshd参数UsePrivilegeSeparation现在也已被弃用(但即使没有它也可以正常运行)。