在 archlinux 上工作,今天最后一次更新。尝试在服务器上设置一个 Web 应用程序。尝试 su 时出现错误“核心转储”,决定重新启动。重新启动后问题开始出现。
输入密码后的 ssh -vvv 输出(如有需要可以提供完整日志):
Last login: Tue Nov 1 02:16:34 2022 from 192.168.1.100
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: chan_shutdown_write (i0 o1 sock -1 wfd 5 efd 6 [write])
debug2: channel 0: output drain -> closed
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: chan_shutdown_read (i0 o3 sock -1 wfd 4 efd 6 [write])
debug2: channel 0: input open -> closed
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug3: Successfully set console output code page from 65001 to 65001
debug3: Successfully set console input code page from 65001 to 65001
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug3: send packet: type 97
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/6 sock -1 cc -1)
debug3: send packet: type 1
debug3: Successfully set console output code page from 65001 to 65001
debug3: Successfully set console input code page from 65001 to 65001
Connection to 192.168.1.3 closed.
Transferred: sent 1916, received 2684 bytes, in 0.6 seconds
Bytes per second: sent 3460.9, received 4848.1
debug1: Exit status -1
尝试使用 -t param。
ls 输出go
、cat /etc/passwd file not found
、cd 和许多其他命令:command not found
不知道发生了什么,也不知道该怎么办。
另外,我可以物理访问该机器,但想留在 ssh 中(这有点困难)。
答案1
这个答案很愚蠢。
我尝试了很多不同的解决方案来解决这个问题,但答案是在登录后快速按 ctrl+c。然后,我就可以做我的事情了。
我记得我尝试安装一些 yum 包或类似的东西,一周后才发现问题(重启后没有检查服务器)。也许更新冻结了系统?不确定。