I created an SSH key with PuTTY and can use it to successfully login to my droplet.
I tried to change the SSH key passphrase with
ssh-keygen -p Enter file in which the key is (/root/.ssh/id_rsa): /root/.ssh/authorized_keys Failed to load key /root/.ssh/authorized_keys: invalid format
The content of /root/.ssh/authorized_keys file is exactly the same as that generated by PuTTYgen (Public key for pasting into OpenSSH authorized_keys file).
does anyone know why its invalid of am I doing something wrong? or better still can I debug this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.