check which ssh users are connected code example Example: list all ssh connections ubuntu ss | grep -i ssh