I have a Virtual Machine in which I usually connect by ssh, and it works very good. But after a while it stops working, I can ping it, and when I ssh it, it shows the authentication screen, I enter my user, and when I put the password (I know it is the right one) it does not log in. But if I restart the server it works well again. I have no idea why is this happening. Any ideas?
I'm not a native English speaker, in case you don't understand something, or need more information, please ask.