小编n.s*_*.st的帖子

SSH 会话在关机/重启时挂起

我有一台运行 Debian 和 sshd 的服务器,如果我需要重新启动服务器,我的 SSH 会话会在客户端挂起,直到 TCP 超时。我认为这是因为在sshd终止时它没有明确关闭与主机的打开的 SSH 会话。我应该怎么做才能让sshd所有人先断开连接,然后正常终止?到目前为止,我没有看到man sshd_config与关闭行为相关的参数。

debian ssh systemd

16
推荐指数
3
解决办法
2万
查看次数

sshd 日志包含“pam_unix 身份验证失败”

我在我的 Linux 机器上收到以下错误消息。

sshd[9287]: message repeated 2 times: [ error: PAM: Authentication failure for root from 172.16.2.1]  
sshd[9287]: Received disconnect from 172.16.2.1: 11:  [preauth]  
sshd[9312]: error: PAM: Authentication failure for root from 172.16.2.1  
sshd[9315]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.16.2.1  user=root  
Run Code Online (Sandbox Code Playgroud)

这种情况经常发生,我的日志中充满了此错误消息。如何克服这个问题?

linux ssh

4
推荐指数
1
解决办法
3万
查看次数

标签 统计

ssh ×2

debian ×1

linux ×1

systemd ×1