Vultr provides a feature that allows you to pre-install SSH keys upon creating a new instance. This allows you to access the server's root user, however, the key will not work out of the box with newly created non-root users. This Quickstart Guide describes how to use your pre-installed SSH key with newly created users.
In this guide, the non-root user is named example_user.
Create the .ssh directory for the non-root user.
# mkdir /home/example_user/.ssh
Open your SSH key in the Customer Portal. Copy the key to the clipboard.
You can use any OpenSSH format key, it's not required to share the same key you deployed to the root user. In fact, sharing keys is a poor security practice. This example is for illustration.
# nano /home/example_user/.ssh/authorized_keys
Paste the key at the bottom of the .ssh/authorized_keys file.
Verify the ownership and permissions for the SSH keys are correct.
# chown -R example_user:example_user /home/example_user/.ssh # chmod 600 /home/example_user/.ssh/authorized_keys
You non-root user can now use the SSH key.
For more information about managing SSH keys, see our other guides: