CentOS6下ssh无法连接
实验系统:centos6.6 ,内网IP:192.168.6.61 ssh无法连接问题通常想到的就是端口问题了,如22是不是没在防火墙之内了(但是centos默认22端口开启), 首先,查看防火墙配置: 查看打开的端口:# vi /etc/sysconfig/iptables 但是, 22端口是默认打开的: 此时,SSH还是无法连接! 一怒之下,直接关闭防火墙。。。 centos 7: systemctl stop firewalld.service #停止 systemctl disable firewalld.service #禁用 之前的版本: service iptables stop #停止 chkconfig iptables off #禁用 SSH还是无法连接 在他人指导下,发现可能问题在ifcfg-eth0文件的配置上 root下,输入命令: vi /etc/sysconfig/network-scripts/ifcfg-eth0 使用方向键移动光标,修改ONBOOT=no 为 ONTBOOT=yes Done! ONBOOT=no #当计算机重启时,网络是不会自动连接的,还得需要配置ifcfg-eth0文件使计算机重启后自动激活网卡并连接互联网 ONBOOT=yes #系统启动时是否自动加载 来源: oschina 链接: https://my.oschina