how to check active ssh connections in linux code example
Example 1: list all ssh connections ubuntu
ss | grep -i ssh
Example 2: check active ssh connections on linux
last -a | grep -i still
ss | grep -i ssh
last -a | grep -i still