SSH port changes or SSH can not be reached remotely (especially foreign servers)

Question:

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

Set the number of visits to /etc/ssh/sshd_config

take#UseDNS yesChange to UseDNSno
Using DNS check, the system tries to check the corresponding domain name through DNS when SSH is an IP.
If there is no domain name resolution for this IP in DNS, it will wait until the DNS query expires for the next step, which takes a long time

 

This parameter seems to be certifying graphics.

modifyGSSAPIAuthenticationThe parameter is no,The default is yes

 #MaxStartups 10,Input /MaxStartups to locate and modify

 

#Remove, modify 10 to 1000,MaxStartups 1000


 Restart SSH service./etc/rc.d/init.d/sshd restart

 

xshell When it is wrong, WARNING! The remote SSH server rejected X11 forwarding request.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *