Created
October 13, 2014 21:29
-
-
Save paulghaddad/ce8b273f10cc8e9fa4db to your computer and use it in GitHub Desktop.
Level Up 1: Knows what ports are and can use netstat to find them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Demonstrate the command to show the list of currently listening ports on your laptop. | |
netstat -l | |
2. Do it again on a Linux VM, but make sure to include the flags to display the applications that are listening. Find the application port and pid that run sshd. | |
My VM uses SSH: netstat -alp | grep 'ssh' | |
tcp 0 0 192.168.56.78:22 192.168.56.1:54924 ESTABLISHED 5591/sshd: cnuapp | |
3. List the default ports for ssh, scp, http, https and postgres. | |
SSH: 22 | |
SCP: 22 | |
HTTP: 80 | |
HTTPS: 443 | |
Postgres: 5432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment