I have an ssh and OwnCloud server. Frequently, my desktop's OwnCloud client disconnects. Attempting to ssh into my server results in
Connection refused. I can ping the server, but cannot connect via ssh or the OwnCloud client. Oddly enough, I can connect to the OwnCloud webpage fine.
After several minutes, I can connect via ssh. However, I sometimes get kicked from the session, and cannot connect again for a few minutes. This just happened, allowing me to look through
/var/log for newly-modified logs. The following had all been modified recently, but none contained anything interesting:
wtmp lastlog auth.log ufw.log syslog messages kern.log.
After being locked out, I've also tried to restart, but this does not solve the problem immediately. In the past, I could always connect about 60 seconds after a restart. Now, I cannot connect for several minutes. As above, ping works, but I cannot connect immediately.
How can I make my ssh/OwnCloud server work all the time?
The server is a Raspberry Pi running Raspbian Jessie (testing). I also use