SecureCRT通过SSH服务登录ubuntu18.4报错
最近我在搭建k8s的时候使用SecureCRT通过SSH服务使用root账户连接ubuntu的时候老是报错:Password authentication failed, Please verify that the username and passwd are correct (如图)经过我研究发现是禁止了root账户登录权限以下为修改方法:1.打开/etc/ssh/sshd_...
·
最近我在搭建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,即可成功。
更多推荐
已为社区贡献1条内容
所有评论(0)