xshell 鏈接報錯 Disconnected from remote host

Type `help' to learn how to use Xshell prompt.shell

[c:\~]$ vim

Connecting to 20.0.0.91:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.ssh

Last login: Fri Nov 1 12:36:08 2019 from 10.0.1.25spa

Connection closed by foreign host.rest

Disconnected from remote host(20.0.0.91) at 12:38:43.code

Type `help' to learn how to use Xshell prompt.blog

 

操做:rem

 

vim /etc/ssh/sshd_config

#UseDNS yes
改成
UseDNS no

重啓sshd
service sshd restart
相關文章
相關標籤/搜索