SSH Keys Configuration

Posted April 27, 2020 389 views
DigitalOcean Accounts

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.

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.

Submit an Answer
2 answers

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


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