一、编辑如下文件
vi /etc/ssh/sshd_config
注释PermitRootLogin without-password
增加PermitRootLogin yes即可,保存退出
二、重启ssh服务service ssh restart
本文介绍如何通过修改sshd_config文件来允许使用root用户远程登录Linux系统,并重启SSH服务使更改生效。
一、编辑如下文件
vi /etc/ssh/sshd_config
注释PermitRootLogin without-password
增加PermitRootLogin yes即可,保存退出
二、重启ssh服务service ssh restart

被折叠的 条评论
为什么被折叠?