Here are several ways to kill all the processes in linux.
Where username is my userid.
# pkill -u username
or
# ps -o pid -u pu | xargs kill -1
# pgrep -u username | sudo xargs kill -9
Show processes run for a username and sshd
# pgrep -u username sshd