Stop Apache from listening on 443 and run sshd on 443
What is SSH? It stands for "Secure SHell", a kind of Telnet but where the data is encrypted. By default, sshd, the SSH daemon is running on the Linux box on port 22. The idea is to have sshd also listening on port 443, so that we can connect from behind firewall.
Aache webserver is running HTTPS on port 443. We need to stop this service.
#vi /etc/httpd/conf.d/ssl.conf
Comment out "Listen 443"
#/etc/init.d/httpd restart
Next run another instance of sshd on port 443: Leave the default service running on 22 so that others can access it
#/usr/sbin/sshd -p 443
Incase we want to change the default port of sshd, this is the way to do it:
#vi /etc/ssh/sshd_config
Comment out Port 22 and add Port 443
#Port 22
Port 443
Now restart the SSH daemon:
$/etc/init.d/sshd restart
No comments:
Post a Comment