检查以下几项,并修改成以下值:
允许ssh远程登陆
vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
#以下三项不修改可能会出现SSH连接时缓慢的情况
UseDNS no
GSSAPIAuthentication no
GSSAPICleanupCredentials no
systemctl restart sshd
检查以下几项,并修改成以下值:
允许ssh远程登陆
vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
#以下三项不修改可能会出现SSH连接时缓慢的情况
UseDNS no
GSSAPIAuthentication no
GSSAPICleanupCredentials no
systemctl restart sshd