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.

×
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

Regards,
KDSys

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

Submit an Answer