我前几天升级到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
Run Code Online (Sandbox Code Playgroud)
虽然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
Run Code Online (Sandbox Code Playgroud)
谷歌告诉我设置UsePrivilegeSeparation为yes,no或者sandbox,但它什么也没做.我/etc/ssh/sshd没有修改.
编辑:我将我的个人笔记本电脑升级到18.04(HP Elitebook 8570w,完全与上面固定的戴尔无关),当我尝试ssh到我的笔记本电脑时发生了完全相同的错误; preauth孩子被信号31终止.
小智 0
希望可以帮助遇到同样问题的人,这个问题让我挣扎了至少两个星期……最后通过将“sandbox”值修改为“yes”来修复它,我不知道逻辑,如果有人可以帮助解释为什么它有效,我们将不胜感激:\n在 sshd 配置文件\xef\xbc\x88/etc/ssh/sshd_config)中,您可以找到以下行:
\n\n从:
\n\nUsePrivilegeSeparation sandbox # Default for new installations.
到
\n\nUsePrivilegeSeparation yes
| 归档时间: |
|
| 查看次数: |
908 次 |
| 最近记录: |