how to inject ssh public key for second user
HI all,
i have created vm in openstack by default nova injecting ssh public key for user test1 location /home/test1/authorized keys till here everything is fine.
if i want give ssh access for second user, how can i give...
thanks in advance Prasanth
Cloud-init is the way to go here. When the instance is launched you can only inject one key to the VM, but with cloud-init you can configure the VM the way you want, e.g. creating files for management (salt-minion), enable services and inject ssh keys.
Agree with @eblock.
If you want to check out an example (https://cloudinit.readthedocs.io/en/latest/topics/examples.html#configure-instances-ssh-keys (https://cloudinit.readthedocs.io/en/l...))