Server access – There must be a better way
1 points| campervans | 1 year ago
My SSH key is provisioned...
I need help with DevOps... but there seems to be no simple way to provision another SSH key.
Support suggested this:
"1. Go to the Rescue section of your server, but instead of the (reset root password) button, click the Activate Rescue & Reset button. Your server will then boot into the rescue system. 2. Connect to your server via SSH using the Rescue credentials. 3. execute the following commands in Rescue: mount /dev/sda1 /mnt chroot-prepare /mnt chroot /mnt From this point you can now navigate through the file structure of your Cloud Servers primary disc. SSH keys for the root user are stored in /root/.ssh/authorized_keys.
4. Restart your server using the reboot command and log in using the new SSH key."
But seems pretty scary process on a server running multiple application.
There must be a better way!
CoolCold|1 year ago
If you rephrase your question and what prevents you to just add keys after provisioning finishes, I'll try to help
warrenm|1 year ago
Why not just push any other keys "traditionally" using scp?