标签:网卡 关闭防火墙 防火墙 ice systemctl out refused tab pad
错误提示:
ssh: connect to host 192.168.1.100 port 22: Connection refused
尝试解决:
关闭防火墙,重新启动sshd.service
root# systemctl stop firewalld.service
root# systemctl disable firewalld.service
root# systemctl restart sshd.service
问题没有解决
修改IP地址,重启虚拟机网卡
[root@host ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=f285f15e-e49e-44bd-962b-f408d3005125
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.1.110 //IP地址
NETMASK=255.255.255.0 //子网掩码
GATEWAY=192.168.1.1 //网关
DNS1=192.168.1.1 //DNS
[root@huaqigo ~]# /etc/init.d/network restart
Restarting network (via systemctl): [ OK ]
ssh连接成功
标签:网卡 关闭防火墙 防火墙 ice systemctl out refused tab pad
原文地址:https://www.cnblogs.com/qinghui3/p/12500133.html