The command: sudo netstat -ntulp
gives me:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1263/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1357/sshd
tcp6 0 0 :::80 :::* LISTEN 1857/apache2
tcp6 0 0 :::22 :::* LISTEN 1357/sshd
tcp6 0 0 :::443 :::* LISTEN 1857/apache2
Why is sshd listed twice? And what's the difference between 0.0.0.0:22 and :::22?
sshd
on both IPv4 and IPv6. Do check with the rule book though whether you're allowed to runsshd
in the first place. – Satō Katsura Sep 18 '17 at 19:40