Show Active ssh Users

Show Active ssh Users

#!/bin/bash
lsof -i tcp -n | grep '\<ssh\>' | awk '{print $3}' | sort | uniq

Leave a Reply

Your email address will not be published. Required fields are marked *