How do I add an SSH key into an existing droplet? I created two keys, added into my ssh keys on the panel but my droplets still ask for a password (the keys have no password). Thanks!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
Copy the contents of the public key into (create if it doesn’t exist) /home/(user)/.ssh/authorized_keys
or /root/.ssh/authorized_keys
if you login as root.
I got it to work by adding the ssh key to both /root/.ssh/authorized_keys and /root/.ssh known_hosts then restarting the droplet
This comment has been deleted