SSH掉线后使用w或者who查看会有进程

下面是终止进程的方法 可以踢出之前登录的用户

ps -ef | grep pts/0

root 8171 8169 0 15:23 pts/0 00:00:00 -bash
root 8485 8446 0 18:40 pts/1 00:00:00 grep pts/0

kill -9 8171

搞定

参考

https://blog.csdn.net/weixin_34198453/article/details/91529201