By default, SSH listens on both IPv4 and IPv6, if you don’t connect using IPv6 then you can disable it entirely from listening.


Edit your SSH config file /etc/ssh/sshd_config

Uncomment out the following line:

Restart SSH daemon

Rerun netstat to check it isn’t listening

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.