连接xshell报错To escape to local shell, press 'Ctrl+Alt+]'

一、问题:使用xshell连接远程主机的时候一直卡在To escape to local shell, press 'Ctrl+Alt+]'.,要等很久才能连上

 

二、解决方法:

vi /etc/ssh/sshd_config
UseDNS no # 修改UseDNS yes为UseDNS no,并且去掉前面的 #。见下图

 

三、原先打开目的:防止客户端欺骗的一种措施

 

备注:若这样还不行

1、查看防火墙是否关闭    service iptables  status

     关闭防火墙  service ipstables stop 

     启动防火墙  service iptables start

2、换一个虚拟机IP,可能是ip被占用了。

    cd  /etc/sysconfig/network-scripts 

    vim ifcfg-eth0 修改IPADD  

    service netword restart 重启网络

 

posted @ 2020-03-20 21:10  蜕变1  阅读(13744)  评论(0编辑  收藏  举报