ping相关

来源:互联网 发布:海康威视网络ddns 编辑:程序博客网 时间:2024/05/07 01:46

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

0 0
原创粉丝点击