how to avoid ssh timeout

i always face with this problem every time i use ssh client from new installed debian system. Edit the /etc/ssh/sshd_config


ClientAliveInterval 300
ClientAliveCountMax 10

On client side, in $HOME/.ssh/config or /etc/ssh/ssh_config

ServerAliveInterval 30
ServerAliveCountMax 10

Make sure the ssh server using Protocol 2
Check man ssh_config and sshd_config for more info

Advertisements

Published by

paragasu

Different. In a good way

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s