Prevent ssh auto disconnect after some time

Prevent ssh auto disconnect after some time

On the server side:

nano /etc/ssh/sshd_config

Add or modify the lines:
ClientAliveInterval 30
ClientAliveCountMax 5

You will need to restart sshd:
/etc/init.d/ssh restart

On the client side:

nano /etc/ssh/ssh_config

Add or modify the lines:
ServerAliveInterval 30
ServerAliveCountMax 5


No comments:

Post a Comment

Setting program_name in mysql session_connect_attrs allows you to see the name of the program connected

I am using mysql for quite some time now. I have noticed that looking at client connections using mysql workbench so an interesting column ...