
Changing SSH keys on a running server using the Vultr Console will reinstall and wipe all data on the server. You can manually change SSH keys without reinstalling the server by following this Quickstart Guide.
Deploy a new SSH key from a Linux or Mac workstation with ssh-copy-id.
The ssh-copy-id utility is pre-installed on most Linux distributions. Mac workstations can install it via Homebrew, MacPorts, or using Curl.
Use the utility to add your public key to the server.
Specify the correct public key with the -i [path to public key] parameter.
Specify the username and server IP address (or domain name) as shown. For example, the root user at 192.0.2.123:
The utility will report some basic information and prompt for your password.
Enter your password and the utility installs the key.
Windows workstations can mimic the ssh-copy-id utility with a one-line PowerShell command. The example shown pipes the the public key through SSH from the current user's profile to the root user's ~/.ssh/authorized_keys.
There are no common automatic methods to delete a public key, you must remove it manually.
The Vultr API offers several endpoints to manage SSH keys.
For more information about managing SSH keys, see our other guides:
0 Comments
Be the first to comment and share your perspective with the community.