前几天,我升级到了ubuntu 18.04,从那时起,我无法再SSH到我的机器上了。 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 [email protected]
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
设置为yes
,no
或sandbox
,但是它什么也没做。我的/etc/ssh/sshd
未修改。编辑:我也将我的笔记本电脑也升级到18.04(HP Elitebook 8570w,与上面固定的Dell完全无关),当我尝试将ssh连接到笔记本电脑时,也发生了完全相同的错误。 preauth子级被信号31终止。
最佳答案
希望可以帮助遇到相同问题的人,这个问题使我至少挣扎了两个星期……最后通过将“沙盒”值修改为"is"来解决它,我不知道逻辑,如果有人可以帮助解释为什么这样做会被赞赏:
在sshd配置文件(/etc/ssh/sshd_config)中,您可以找到以下行:
从:UsePrivilegeSeparation sandbox # Default for new installations.
至UsePrivilegeSeparation yes
关于ubuntu - sshd preauth子级被信号31终止,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48255696/