We can fix this issue as mentioned below steps:
1) Take /etc/ssh/sshd_config backup
# cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.`date '+%m-%d-%Y_%H:%M:%S'`
2) Edit /etc/ssh/sshd_config on sshd Server
#vi /etc/ssh/sshd_config
And add this DNS option to the file:
UseDNS no
3) Now add the following line to your
#vi /etc/resolv.conf
options single-request-reopen
options single-request-reopen
4) Restart ssh daemon
# systemctl restart sshd
# systemctl restart sshd
# systemctl status sshd
No comments:
Post a Comment