In some cases, we can work without OpenSSH server. If you need not to provide the remote login and file transfer capabilities of SSH, disable and remove the SSHD server. CentOS user can disable and remove openssh-server with yum command:
# chkconfig sshd off
# yum erase openssh-server
You may need to update your iptables script to remove ssh exception rule. Under CentOS edit the files /etc/sysconfig/iptables and /etc/sysconfig/ip6tables. Once done restart iptables service:
# service iptables restart
# service ip6tables restart
Sign up or log in