After change main username of EC2 Instance i am not able to login to shell
Started on: 25 January 13
Participants: 1
By mistake i renamed the main user's username and then i can not able to login with the new username.
I used "imported-openssh-key" passphrase.
so after i used the existing Passphrase cannot access.
Please help me
This can be fixed by creating new instances ?
Thanks in advance
I used "imported-openssh-key" passphrase.
so after i used the existing Passphrase cannot access.
Please help me
This can be fixed by creating new instances ?
Thanks in advance
This challenge is listed under
Cloud Computing
and Development & Implementations
Community
Related Posts:
1 Suggestion
Hi TechWay,
Try the below 7 steps carefully and will solve your issue
1. First create New Instance
2. Stop old Instance.
3. Detach your existing volume that used in old instance
4. Attach that old volume to New Instance as Secondary volume (so 2 volumes for New Instance) device path (/dev/sda2)
5. Now SSH to New Instance using Putty
6. And then Mount the old instance volume (dev/sda2) to New Instance Path (/mnt or path of the new website)
7. Now you can restore your data and stop the old instance .
Mount command like below
# sudo mount /dev/sda2 /mnt /dev/sda2 is the broken instance path, /mnt is temparory insatnce path
You should now be able to get into the broken instances filesystem and attempt a repair or data recover to the new working instance.