Linux开启root用户的ssh登入

1585364631
2022-04-19 / 0 评论 / 345 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2022年04月19日,已超过1456天没有更新,若内容或图片失效,请留言反馈。

AI摘要

若需开启Linux的root用户SSH登录,请编辑`/etc/ssh/sshd_config`文件,将`PermitRootLogin`参数修改为`yes`并取消注释,最后重启SSH服务即可生效。

Linux开启root用户的ssh登入

1.修改文件

vim /etc/ssh/sshd_config

2.去掉注释并且修改

PermitRootLogin yes

3.重启ssh

service ssh restart
0

评论 (0)

取消