Xshell连接本地虚拟机失败问题/Connecting to 192.168.169.111:22... Connection established. To escape to local she

提示:

Connecting to 192.168.169.111:22…

Connection established.

To escape to local shell, press ‘Ctrl+Alt+]’.

Escape to local shell… To return to remote host, enter “exit”.

To close connection, enter “disconnect”.

Type `help’ to learn how to use Xshell prompt.

好多人遇到过本地连接虚拟机Xshell连接不上的问题,网上查了一下遇到这个问题的几种解决方案。

  1. 方案一 ,连续按三次Ctrl+Alt+],然而不怎么管用;
  2. 方案二 ,linux端命令
    (1)vim /etc/ssh/sshd_config;
    (2)i(编辑模式);
    (3)找到UseDNS yes,改为UseDNS no;
    (4)按下“Esc”键,退出编辑模式,输入命令 :w 保存,输入命令 :q 退出(切记:号);
    (5)/etc/init.d/sshd restart 重启ssh。
    针对于部分机子。
  3. 方案三 ,关闭虚拟机,编辑→虚拟网络编辑器→还原默认设置→重新配子网IPXshell连接本地虚拟机失败问题/Connecting to 192.168.169.111:22... Connection established. To escape to local she
    网络设置也要和自己配置的一样,虚拟机设置 →设置→网络适配器
    Xshell连接本地虚拟机失败问题/Connecting to 192.168.169.111:22... Connection established. To escape to local she
    然后Xshell删除链接,重新新建链接
    Xshell连接本地虚拟机失败问题/Connecting to 192.168.169.111:22... Connection established. To escape to local she
    当然,这个方法时而管用,时而不管用。
  4. 方案四 ,在高人的指点下我好像明白了,Xshell连接本地虚拟机失败问题/Connecting to 192.168.169.111:22... Connection established. To escape to local she
    然后我重新连接,等了一会儿,,,,居然能连接上了,出现以上问题,只需等一会儿就搞定了。
    Xshell连接本地虚拟机失败问题/Connecting to 192.168.169.111:22... Connection established. To escape to local she
    真是踏破铁鞋无匿处,得来全不费工夫啊。