connection
Hi Room
I want to see my ssh connection from port 22. below command give current now but I want to check past 5 minutes or may be longer time frame.
thank you
netstat -tn 2>/dev/null | grep :22 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head
Last edited by cellranking; 04-20-2017 at 01:27 PM.
|