1
2
3
4
5
# to set it globally
echo 'ServerAliveInterval 60' >> /etc/ssh/ssh_config

# For per-user configuration
echo 'ServerAliveInterval 60' >> ~/.ssh/config