How to create machine ?
There are 3 credential ssh mode as following,
SSHKEY
{ "domain": "12.34.56.78", "port": "22", "username": "ubuntu", "mode": "SSHKEY", "credential": { "sshkeyfile": "/credential/REPLACE_PATH/REPLACE_PRIVATE.KEY" }, "sudopassword": "REPLACE_PASS" }
SSHKEYWITHPASSPHRASE
{ "domain": "12.34.56.78", "port": "22", "username": "ubuntu", "mode": "SSHKEYWITHPASSPHRASE", "credential": { "sshkeyfile": "/credential/REPLACE_PATH/REPLACE_PRIVATE.KEY", "passphrase": "REPLACE_SCRETE" }, "sudopassword": "REPLACE_PASS" }
USERPASS
{ "domain": "12.34.56.78", "port": "22", "username": "ubuntu", "mode": "USERPASS", "credential": { "password": "REPLACE_SCRETE" }, "sudopassword": "REPLACE_PASS" }
Notice:
REPLACE_PATH/REPLACE_PRIVATE.KEY
should be replaced by theSSHDATA
structure used during installation. e.g,SSHDATA
has inner pathmyvps/thekey
, therefore, thesshkeyfile
should be modified as/credential/myvps/thekey
.- Except value of
mode
should NOT be modified, you can replace value of other attributes.