开启root远程访问

不建议

rocky linux默认安装完毕后,无法通过ssh进行root远程登录

如需开启root远程登录,变更以下配置:

$ sed -i "s;#PermitRootLogin prohibit-password;PermitRootLogin yes;g" /etc/ssh/sshd_config
$ systemctl restart sshd
Copyright © weiliang 2021 all right reserved,powered by Gitbook本书发布时间: 2024-04-22 16:03:41

results matching ""

    No results matching ""