What OS are you using? CentOS, FreeBSD, RHE? To see what ports open, you can run the following command:The commands which you gave me for SSH I checked them (both) but I couldn't see if the ports are blocked or not!
PORT STATE SERVICE
1/tcp open tcpmux
21/tcp open ftp
25/tcp open smtp
26/tcp open unknown
53/tcp open domain
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
143/tcp open imap
443/tcp open https
465/tcp open smtps
631/tcp open ipp
783/tcp open hp-alarm-mgr
953/tcp open rndc
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
How do you define "unused ports"? You can block and/or open a port using iptables command. Use this command at your own risk:can anyone tell me how to CLOSE unused ports??