I just deleted my full ec2-user/.ssh/ folder and I want to recover the keys so I can access my EC2 server without stopping and starting it.
I have on my computer a PPK file that has something like "Private-Lines" so I'm guessing it has both private and public key… I've tried a lot of things without success so, what are the step by step instructions to recover my keys to the server using this PPK key?
I'm still connect via SSH 🙂
Best Answer
Ok, this is really easy:
~/.ssh/authorized_keys
and paste the keychmod 700 ~/.ssh
chmod 600 ~/authorized_keys