Skip to content

Instantly share code, notes, and snippets.

@carlosjs23
Created October 15, 2016 02:26
Show Gist options
  • Select an option

  • Save carlosjs23/cf4e77ba95a2d4647ed02be249fc89ff to your computer and use it in GitHub Desktop.

Select an option

Save carlosjs23/cf4e77ba95a2d4647ed02be249fc89ff to your computer and use it in GitHub Desktop.

Revisions

  1. carlosjs23 created this gist Oct 15, 2016.
    5 changes: 5 additions & 0 deletions timeout-ssh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    1. Open /etc/ssh/sshd_config
    2. Search for #TCPKeepAlive yes -> uncoment it, then set to no
    3. Search for #ClientAliveInterval 0 -> uncoment it, then set to 30
    4. Search for #ClientAliveCountMax 3 -> uncoment it, then set to 100
    5. Save and restart: systemctl restart sshd