Amazon EC2 – putty timeouts

I’m getting into this EC2 stuff – its pretty good. But on a putty session – the default session timeouts are like 2-3 mins after inactivity.

I added this to an Ubuntu 13.10 build

sudo vi /etc/ssh/sshd_config

ClientAliveInterval 30
ClientAliveCountMax 5

Works…