最近我在搭建k8s的时候使用SecureCRT通过SSH服务使用root账户连接ubuntu的时候老是报错:Password authentication failed, Please verify that the username and passwd are correct (如图)

经过我研究发现是禁止了root账户登录权限

以下为修改方法:

1.打开/etc/ssh/sshd_config文件

 [root@houyuxi ~]# vim /etc/ssh/sshd_config

2.按照下图添加 PremitRootLogin yes

3.重启ssh服务

 [root@houyuxi ~]# /etc/init.d/ssh restart

4.再次使用SecureCRT通过SSH服务使用root账户连接ubuntu,即可成功。

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐