One of my servers is acting very strange. I've just set up private public rsa authorization for logging in to my two servers, using putty on my end. It works fine for one of them, so putty or the keys isn't the problem.
When I try to log on using the private key I get an Server refused our key error and a password prompt. If I then login, and try to log on another time with in a new SSH session it logs in fine. So I have a couple of questions. Can it matter that I have a session open? And that this behaviour is considered normal, and it's something wrong with my setup.
What could possibly be wrong with my system to explain this behaviour. It seems that the server can't run some services if there isn't a user logged on, but it runs an apache server and torrentflux fine. Though I am reminded that I had similar issues with another torrent client (rtorrent I think), that would stop downloading if I wasn't logged on.
I think the problem is a encrypted home directory. So I'll have to investigate how to configure it to let me use rsa private authorization. I have sneaking suspision that this might be the cause of more weird quirks with the system, like the PWD resetting for emacs in a screen session if I log out after detatching.
It was the encrypted file system that was the problem, and I followed the instruction in the Troubleshooting section here to fix the problem. But now my home directory won't mount unless I do ecryptfs-mount-private which is a pain. Maybe I should just get rid of the encrypted home dir.