简单粗暴的踢下线方法: $ kill $(ps aux | grep pts | grep sshd | awk '{print $2}') 转载于:https://my.oschina.net/iblackangel/blog/898455