问题:

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

把访问数给设置一下 /etc/ssh/sshd_config

#UseDNS yes改为 UseDNS no
使用了dns反查,这样的话当ssh某个IP时,系统会试图通过DNS反查相对应的域名,
如果DNS中没有这个IP的域名解析,则会等到DNS查询超时才会进行下一步,消耗很长时间

 

该参数似乎是在做图形方面的认证

修改GSSAPIAuthentication参数为 no,默认是yes


 #MaxStartups 10,输入/MaxStartups 定位到如下并修改

 

#去掉,修改10为1000,MaxStartups 1000


 重启SSH服务,/etc/rc.d/init.d/sshd restart

 

xshell 报错时:WARNING! The remote SSH server rejected X11 forwarding request.