linux 关闭SSH 连接用户
1,查明登陆端口;
# who
root pts/1 Apr 8 00:06 (172.29.0.29)
root pts/2 Apr 8 04:15 (172.29.0.21)

2,通知该用户将要关闭他:
# echo "I will close your connection" > /dev/pts/2
这样他的终端将显示该信息。

3,关闭用户连接
# fuser -k /dev/pts/2

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-10-29
  • 2022-01-07
  • 2021-12-30
  • 2022-12-23
猜你喜欢
  • 2021-10-18
  • 2022-02-06
  • 2021-05-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-08-28
相关资源
相似解决方案