AWS Amazon - I changed the default user's ubuntu folder

0

After changing the default folder of the ubuntu user, I can no longer login, because the private key is not found. What to do?

    
asked by anonymous 08.05.2018 / 00:30

2 answers

0
___ erkimt ___ AWS Amazon - I changed the default user's ubuntu folder ______ qstntxt ___

After changing the default folder of the ubuntu user, I can no longer login, because the private key is not found. What to do?

    
______ azszpr297013 ___

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.

    
______ ___ azszpr339157

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.

    
___
26.10.2018 / 16:04
0

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.

    
08.05.2018 / 01:33