Question

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.

Subscribe
Share

Submit an 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.

sigue apareciendo un mensaje de error: root@159.89.40.34: 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