Kendi Sunucunu 上购买自己想要的配置
点击 Giriş Detayları后 会出来一个带有网址账号 密码的页面
登录后点击+Create virtual machine
填写名称 Image镜像 、Volumes 根目录大小、Flavor配置大小、Network interfaces选IP段、最后加载秘钥,点击deploy
等待开通链接
其他事项 秘钥 可以在XSHELL中自己生成。链接的时候需要秘钥,再点击秘钥可以生成一个保存下来
设置用密码登录,放置在其他中 password:后面有空格, 测试没成功,
#cloud-config
user: root
password: Hx@123456
chpasswd:{literal} {expire: False}{/literal}
ssh_pwauth: True
runcmd:
- sed -i -r 's/(#+?)PermitRootLogin(.*)/PermitRootLogin\ yes/g' /etc/ssh/sshd_config
power_state:
mode: reboot