Friday, 6 April 2012

Kill idle SSH sessions on linux


First check how many user current logged in server using "w" command




View all SSH sessions processes id using "pstree  -p" command





kill idle ssh session using "kill  PID" command



I hope, this would resolve your issue.