最近寒假,终于有时间去把暑假的时候没搞下来的visa借记卡搞下来了。第一时间就去注册了甲骨文,挂着脚本刷了两天终于刷出了amd(大阪也挺难刷的。但是他用私钥登录,我不太习惯,还是改成root登录吧。在网上搜索了一下,找到了操作方法,成功解决。顺手做个记录:

先用密钥登录上甲骨文,然后切换到root账号

sudo -i

修改你的root密码

echo root:urpasswordhere|sudo chpasswd root

其中urpasswordhere改成你自己的密码

在ssh配置文件中开启root登录,你可以用scp手动改,也可以用以下一键命令

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

重启sshd服务

sudo service sshd restart

然后尝试用root+你刚才设置的密码登录你的乌龟壳吧!

Last modification:January 23, 2022
If you think my article is useful to you, please feel free to appreciate