Ubuntu 22.04 允许root默认远程登录
1.首先切换为root用户
2.
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
3.
sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
4.
sudo systemctl restart ssh
最后使用root登录即可
原文地址:https://blog.csdn.net/wyl614548134/article/details/137677436
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!