Ubuntu开启SSH登录root账号登录

来源:V型知识库 2019年04月03日 10:42 浏览:1917

最近做ubuntu系统,配置ssh的时候始终失败,不是安装失败,而是root用户远程登录失败,多方查询,在ssh配置文件中也配置了

PasswordAuthentication yes
PermitRootLogin yes

还是失败,折腾了一番,突然发现root账户没有密码,,我晕,安装的ubuntu系统的root账户默认没有密码,所以登录一直失败,那么给root用户添加个密码即可,方法如下:

sudo passwd root

然后‘用FileZilla工具 root登录Ubuntu系统成功!