I have an Ubuntu server on Amazon EC2, that I use for development, and today I stupidly cleared everything out of my
~/.ssh/authorized_keys file. Luckily I have an SSH open, so I am still connected, and can fix the file, but when I try to put my key file back, it doesn't work. I still get permission denied from the server on my local machine.
authorized_keys has the permissions 600. I have tried appending my SSH key with ssh-rsa and leaving the ssh-rsa off. I also tried making the SSH key all one line, but that didn't work either.
Is there something else that I have to do like reload the file some how?