Sometimes you may need to kill all process of a particular user. This can be done using following SSH command.
The above SSH command will all process by user username. Like if you want to kill all process by user ravi, change username to ravi.
You can also use killall command to kill all processes of a user.