SSH Keys Configuration

Good afternoon! I need to know how to fix the connection with SSH keys when I delete the ones that were already there. How do I get it to agree to re-create new keys after + deleting the files from the old keys. Thank you.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

sigue apareciendo un mensaje de error: root@ Permission denied (publickey)

Hi @wasabidevelopment,

You’ll need to regenerate your keys with the following command executed in your Terminal :

ssh-keygen -t rsa 

This will create your SSH keys, public and private. Unfortunately, it will create new keys so your old key won’t work anywhere and you’ll need to have the new key re-added to any place you want to connect with them.

The file you’ll need to add the keys is ~/.ssh/authorized_keys

Regards, KDSys