刚刚通过脚本刷到了韩国ARM,分享一下通过密码登陆甲骨文的小技巧。
利用 cloud-init 脚本来开启 root 账号密码登录
#!/bin/bash
echo root:329105sz |sudo chpasswd root
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
默认密码是: 329105sz
登录后一定要修改密码!命令:passwd