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
|