甲骨文云服务器如何密码登录?

 sudo -i切换到root

passwd设置密码

sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;

sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;

最后sudo service sshd restart就可以了

评论

此博客中的热门博文

如何让 Windows 11 系统托盘显示秒数

转onedrive之pyone多网盘篇