spark配置SSH免密码登录:Failed to start ssh.service: Unit not found.

Posted 炫个无敌大菠萝

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spark配置SSH免密码登录:Failed to start ssh.service: Unit not found.相关的知识,希望对你有一定的参考价值。

在虚拟机上配置ssh免密码登录时,一切按部就班,到最后service ssh start时,报错:

Redirecting to /bin/systemctl start ssh.service
Failed to start ssh.service: Unit not found.

图片:

解决方案:

首先查看sshd服务是否启动:

systemctl status sshd.service

active表示正常启动

但下方日志有报错:

pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "r
Failed password for root from 192.168.155.1 port 53012 ssh2

尝试进行解决:

①查看root用户是否被锁定:cat /etc/shadow | grep root

如果出现 root:$6$dHN等乱码,则说明root用户被锁定,不能登陆。

例如:

②进行解锁

passwd -u root

以上是关于spark配置SSH免密码登录:Failed to start ssh.service: Unit not found.的主要内容,如果未能解决你的问题,请参考以下文章

ssh配置(免密码登录)

SSH免密码登录配置

ssh配置免密码登录

配置免密码登录

如何在linux中如何配置ssh免密码登录

如何在linux中如何配置ssh免密码登录