The situation is the following: I have a raspberry pi, with authentication off, and a ssh key with passphrase. The computer where I generated the ssh key doesn't work anymore, but I have backups of the id_rsa and id_rsa.pub files. I understand that simply copying these files to a new computer would not be very secure if this worked, but if my raspberry was not a physical device, but instead a cloud server, would I not be able to connect anymore? Everything would be lost? Can't I recover my access using the old keys and the passphrase? What is the good practice here? Always have a login authentication?
Edit:
To be more detailed about the steps I took and the error I'm getting, what I did was generation the keys on my old MacBook, and saved a backup of the d_rsa and id_rsa.pub files. I now have a new MacBook, where I copied the files to the .ssh folder. When I try to connect to my raspberry pi, running Debian, I get the following message:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/Users/caetano/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/Users/caetano/.ssh/id_rsa": bad permissions
Permission denied (publickey).