1.æ·»å 端å£
vim /etc/ssh/sshd_config
å°#Port 22ç注éå»æ并ä¸æ¢è¡å å
¥Port 443
å¦ææ¯ä¸æ¯å¢å ï¼èæ¯ä¿®æ¹ç«¯å£çè¯ï¼å»ºè®®å
ä¿ç22端å£ï¼çæ°ç«¯å£å¯ä»¥ç»å½åå»æã
443å
¶å®æ¯https使ç¨ç端å£ï¼3128æ¯squid使ç¨ç端å£ã建议使ç¨å¤§ç«¯å£ï¼æ¯å¦10000~65535以ä¸ã
éå¯SSHæå¡ /etc/init.d/sshd restart
2.é²ç«å¢å¼å¯443端å£
vi /etc/sysconfig/iptables
å å
¥-A INPUT -m state âstate NEW -m tcp -p tcp âdport 443 -j ACCEPT
éå¯é²ç«å¢ /etc/init.d/iptables restart
3.å±è½é»è®¤ç«¯å£
确认æ°ç«¯å£å¯ä»¥ä½¿ç¨åæ好è½å±è½æé»è®¤ç22å·ç«¯å£
vi /etc/sysconfig/iptables
å¨
-A RH-Firewall-1-INPUT -m state âstate NEW -m tcp -p tcp âdport 22 -j ACCEPT
åå #å·æ³¨éæ
éå¯é²ç«å¢ /etc/init.d/iptables restart
æåï¼
温馨提示:内容为网友见解,仅供参考