SSH ::: Viewing Connected Sessions On Ubuntu

1. The who Command

$ who

2. The w Command

$ w

3. The last Command

$ last | grep 'still logged in'

4. The netstat Command

$ netstat -atnp | grep 'ESTABLISH.*sshd'

5. The ss Command

$ ps axfj | grep sshd

6. The ps Command

$ ps axfj | grep sshd