Netstat This is very useful command. (It's a must) Show open ports: Bashnetstat -tulpen Show established connections: Bashsudo netstat -tpn Bashsudo netstat -tpn | grep ssh