Execute the following command that displays the list of processes:

1
pstree -p

Look for the sshd:

1
2
├─sshd(3102)─┬─sshd(3649)───bash(3656)
│            └─sshd(16680)───bash(16687)───pstree(17073)

Kill the session:

1
kill 3649