monitor/terminate SSH session

Hello,

I gave SSH to several users. and I am just wondering how I could monitor and/or terminate ( kick out ) a user's SSH session when I found them comsuming too much CPU resources?!

The user I gave SSH to edited files online(vim), that's fine, but some how, everytime after the user logged off, vim continues to run for couple hours and maxed out CPU resources untill i killed the PID.

any comments appreciated. thanks.

 

 

 

 

Top