使用xshell如果遇到报错信息:socket error Event
[root@redis bin]#
Socket error Event: 32 Error: 10053.
Connection closing...Socket close.
Connection closed by foreign host.
Disconnected from remote host(redis) at 18:27:39.
Type `help' to learn how to use Xshell prompt.
解决
1.修改/etc/ssh/sshd_config配置
vim /etc/ssh/sshd_config
UseDNS no # 改为 UseDNS no
2.修改网卡接口配置文件ifcfg-ens33,加上“NM_CONTROLLED=no”
[root@redis ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO=dhcp
NAME=ens33
DEVICE=ens33
ONBOOT=yes
NM_CONTROLLED=no
3.修改ssh目录下的配置文件权限
chmod 400 /etc/ssh/*
4.重启sshd服务
service sshd restart
5.重启网络
service network restart