Setting up a server via the REST API with adding your own SSH key

8 Nov
2021
8 Nov
'21
11:49 a.m.
Hello, please, how i can set ssh_key via REST API on create VM (run-once)? Thanks I have this XML code, but does not working: <action> <use_cloud_init>true</use_cloud_init> <vm> <initialization> <user_name>$sudoUser</user_name> <root_password>$rootPassword</root_password> <authorized_keys> <authorized_key> <user> <user_name>$sudoUser</user_name> </user> <key>ssh-rsa CENSORED root@1.server.com</key> </authorized_key> </authorized_keys> ......

8 Nov
8 Nov
2:13 p.m.
New subject: Setting up a server via the REST API with adding your own SSH key
I found: https://lists.ovirt.org/pipermail/users/2016-April/038848.html I also use authorized_keys instead of authorized_ssh_keys. This topic has been resolved, thanks.
1373
Age (days ago)
1373
Last active (days ago)
1 comments
1 participants
participants (1)
-
ovirt.org@nevim.eu