0

terminate remote ssh user in linux

how do I prevent my server from ssh user in linux.....? suppose if they access my server through ssh, how to terminate that user....?

SSH Linux Add a comment
vertonskjelvic
asked Nov 23 2017

Answer

0

first find the current login ssh user by using # who -la. next step filter the user ip and PID using # who -la | awk '{print $7$8}'. finally kill the process by using # kill -9 PID.

Add a comment
arunkumarak
asked Nov 23 2017
edited Oct 05 2018
Post your Answer