I'm trying to learn thing or two about server security.
I installed nmap to check my server open ports.
Now I've changed default ports on almost everything. So nmpa reports wrong names for the services I'm running.
For example ssh I changed to some random port, and it appears this port is used by some other program, so nmap reports that other program.
I was thinking if it is still possible to determine that ssh is in fact behind this open port? what are tools for this? if this is still possible, then it makes no sense to change default port numbers right?
in fact, I just tried nmap -sV mini.local, and it gave me version of the program so it identified SSH correctly on non standard port.
so what is the point of changing default port #?
sudo netstat -lntpand it will tell you what process is listening on that port and what the process binary is. – Kevin M Oct 18 '11 at 16:12