1、關閉CentOS的防火牆後,能在win ping通CentOS,但是CentOS 不能ping 通win。
Solution:
控制面板 —> windows防火牆->入站規則 —> 文件和打印機共享(回顯請求ICPv4-in)
+文件和打印機共享(回顯請求ICPv6-in) —>啓用規則
2、CentOS和win能相互ping通,但是FileZilla連接CentOS虛擬機時,
結果提示:Network error:Connection refused 錯誤
Solution:
首先檢查SSHD服務是否啓用
進入Centos終端輸入 #ssh localhost
如果提示:ssh: connect to host localhost port 22: Connection refused 錯誤
不用管它,沒有啓動sshd服務的緣故
安裝sshd命令: #yum install openssh-server
安裝好後開啓: #/etc/init.d/sshd start
萬一此時還是連接不上去,關閉防火牆或者開放22端口即可
關閉防火牆命令:# /etc/init.d/iptables stop