請問我們常常使用ssh 連線centos 7 時會被系統中斷去查log後
似乎被系統中斷了連線 請問有解嗎?
Jan 19 22:57:58 XXX sshd[363031]: pam_unix(sshd:session): session closed for user xxxx
Jan 19 22:57:58 XXX sshd[66217]: pam_unix(sshd:session): session closed for user XXXX
Jan 19 22:57:58 XXX sshd[198382]: Received disconnect from 10.0.66.120 port 35924:11: disconnected by user
Jan 19 22:57:58 XXX sshd[198382]: Disconnected from 10.0.66.120 port 35924
Jan 19 22:57:58 XXX sshd[198370]: pam_unix(sshd:session): session closed for user XXXX
Jan 19 22:57:58 XXX sshd[193075]: Received disconnect from 10.0.66.120 port 35832:11: disconnected by user
Jan 19 22:57:58 XXX sshd[193075]: Disconnected from 10.0.66.120 port 35832
Jan 19 22:57:58 XXX sshd[193072]: pam_unix(sshd:session): session closed for user XXXX
謝謝各位高手
如果換個帳戶試試呢?有沒有可能是此帳戶受限,nologin shell被修改了!可以檢查一下
https://docs.jdcloud.com/cn/virtual-machines/ssh-connection-error-session-closed
https://forums.centos.org/viewtopic.php?t=69558
ssh client 端做法:
請參考
https://dywang.csie.cyut.edu.tw/dywang/security/node88.html
ssh server 請找
TCPKeepAlive yes
Google 一下, 文件很多.