After changing the default folder of the ubuntu user, I can no longer login, because the private key is not found. What to do?
After changing the default folder of the ubuntu user, I can no longer login, because the private key is not found. What to do?
After changing the default folder of the ubuntu user, I can no longer login, because the private key is not found. What to do?
The private key is the one in your possession, when you try to access it:
%pre%The public key is in the .ssh folder inside your user's home folder, type:
%pre%You have to check if the changes you made did not compromise this folder or even if you just created another home for your user and did not copy the keys contained in the folder mentioned to the .ssh folder of this new home.
The solution I found was to make a copy of the machine image and upload the copy. With that, I was able to access the copy and work from it. The original machine was no longer accessed at all and I had to kill it.
The private key is the one in your possession, when you try to access it:
ssh -i ~/privateKey.pem [email protected]
The public key is in the .ssh folder inside your user's home folder, type:
/home/usuario/.ssh/
You have to check if the changes you made did not compromise this folder or even if you just created another home for your user and did not copy the keys contained in the folder mentioned to the .ssh folder of this new home.