东篱昏后

导航

 

一、情景描述

从一个节点node01跳到另一个节点node02,长时间连接不上。

二、解决方法

1.修改节点node02的配置文件/etc/ssh/sshd_config。
#UseDNS yes
UseDNS no

#GSSAPIAuthentication no
GSSAPIAuthentication yes

2.重启sshd服务

杀进程:ps -ef | grep sshd | grep -v grep | awk '{print $2}' | xargs kill -9

重启:/usr/sbin/sshd -D

再次尝试从节点node01跳转即可秒登录。

 

posted on 2022-05-10 15:22  东篱昏后  阅读(114)  评论(0编辑  收藏  举报