count current number ssh connections code example Example: check active number of ssh connections last -a | grep -i still