I have a server running Ubuntu server 12.0.4 with Openssh-server installed. I can connect to the server for about 30 minutes and then the connection drops. When I try to reconnect I get The remote system refused the connection.
.
I have used ps -A | grep ssh
to verify that the the sshd is running, and I can ssh back to 127.0.0.1 and stay connected indefinitely.
I have also tried adding ClientAliveInterval 60
in /etc/ssh/sshd_config
which made no difference.