I am using AWS EC2 with Ubuntu. I accidentally deleted the contents of
~/.ssh but still have my session open and still have my
.pem and public keys backed up on my PC. Is there a way to recover my
~/.ssh content? I tried copying my public key, pasting it into a file with the same name on my instance and entering.
cat my-key.pkk >> authorized_keys
But I cannot open another session with PuTTY.