Loading... ## 1. 连接实例  <!--more--> ## 2. 进入root用户 ``` sudo -i ``` ## 3. 修改ssh配置文件/etc/ssh/sshd_config ``` vim /etc/ssh/sshd_config ``` 将`PermitRootLogin`和`PasswordAuthentication`都修改为`yes` ``` PermitRootLogin yes PasswordAuthentication yes ``` ## 4. 设置root密码 ``` passwd ``` ## 5. 重启ssh ubuntu: ``` /etc/init.d/ssh restart ``` centos: ``` service sshd restart ``` ## 6. 通过SSH工具连接  最后修改:2024 年 09 月 13 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏
4 条评论
立意高远,以小见大,引发读者对社会/人性的深层共鸣。
悬念设置恰到好处,牢牢抓住读者注意力。
建议后续持续追踪此话题,形成系列研究。
文字流畅如丝,语言优美动人,读来令人心旷神怡。