SSH keeps disconnecting
I connect to one of my linodes using PuTTY. It keeps disconnecting, usually after a few minutes. This can happen when a command is running, or when nothing is happening.
Any ideas how to keep it connected? It doesn't happen on my other linodes.
Does it say why it's disconnecting? Check your logs in /var/log for errors.
There's nothing in /var/log/messages except:
Aug 3 08:04:19 li90-235 syslogd 1.4.1: restart.
I just turned on keepalives in PuTTY and will see if that helps.
What makes me suspicious is that my other linode has never had this issue. The main difference between them is this linode has multiple IP addresses, and my guess of the day is some configuration to do with this could be wrong. I've noticed when loading my munin graph page, sometimes a graph won't load, so perhaps some connections are getting mashed?
I'm using CentOS, and configured three scripts in /etc/sysconfig/network-scripts
cat ifcfg-eth0 # Linode Host Network Adapter DEVICE=eth0 BOOTPROTO=none ONBOOT=yes IPADDR=188.8.131.52 NETMASK=255.255.255.0 GATEWAY=184.108.40.206
cat ifcfg-eth0:0 # Linode Host Network Adapter DEVICE=eth0:0 BOOTPROTO=none ONBOOT=yes IPADDR=220.127.116.11 NETMASK=255.255.255.0 GATEWAY=18.104.22.168
cat ifcfg-eth0:1 # Linode Host Network Adapter DEVICE=eth0:1 BOOTPROTO=none ONBOOT=yes IPADDR=22.214.171.124 GATEWAY=126.96.36.199 NETMASK=255.255.255.0
Anything glaringly obvious, like I shouldn't have set gateways/should have etc?