how to modify ssh key which is already added for droplet?

February 27, 2018 1k views
Applications DigitalOcean Development

I have created the droplet with ssh key. Now, I have changed the ssh key in settings. Will it be updated in my droplet automatically or should i do anything for that?

1 Answer

Edit ~/.ssh/authorized_keys

  • Can you please elaborate since I'm new to this?

    • Your keys are stored in the ~/.ssh/authorized_keys. You should remove your old key is you are not going to use it anymore and paste your new key in there

Have another answer? Share your knowledge.