Ssh Configure the SSH Connection Timeout: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:


=Overview=
=Overview=
Sets a timeout interval in seconds after which if no data has been received from the client, sshd will send a message through the encrypted channel to request a response from the client.  The default is 0, indicating that these messages will not be sent to the client.


=Server-Side Configuration=
=Server-Side Configuration=

Revision as of 05:16, 4 February 2019

Internal

Overview

Server-Side Configuration

Edit /etc/ssh/sshd_config:

ClientAliveInterval 300
ClientAliveCountMax 0

Client-Side Configuration


Not Tested Yet!

Create ~/.ssh/ssh_config and add:

ServerAliveInterval 60 

then:

chmod go-rwx ssh_config