list all ssh connections ubuntu

Shell
ss | grep -i ssh
Source

Also in Shell: