gpt4 book ai didi

ubuntu - sshd preauth child 被信号 31 终止

转载 作者:太空宇宙 更新时间:2023-11-03 16:44:56 25 4
gpt4 key购买 nike

前几天我升级到 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 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 child 被信号 31 终止。

最佳答案

希望可以帮助遇到同样问题的人,这个问题让我苦苦挣扎了至少两周......最后通过修改“sandbox”值为“yes”来修复它,我不知道逻辑,如果有人可以帮助解释为什么会这样,我们将不胜感激:在 sshd 配置文件(/etc/ssh/sshd_config)中,你可以找到这一行:

来自:

UsePrivilegeSeparation 沙箱 # 新安装的默认值。

UsePrivilegeSeparation 是

关于ubuntu - sshd preauth child 被信号 31 终止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48255696/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com