BackgroundI 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?Other informationThe server is a Raspberry Pi running Raspbian Jessie (testing). I also use ufw and fail2ban.
Why is my server intermittently refusing ssh connections?
ssh;raspberry pi;raspbian
It seems that this problem was caused by another connected device competing for the same IP address. I'm not sure how it managed to confuse the router, but when I disconnected the other device (a Volumio Raspberry Pi), I could connect to the main server fine again.