How to set SSH idle timeout

InfoSec Forums InfoSec Forums General Discussion How to set SSH idle timeout

This topic contains 0 replies, has 1 voice, and was last updated by do son do son 2 weeks, 6 days ago.

  • Author
  • #4691
    do son
    do son
    • Topics:202
    • Comments:51
    • Super Member
    • ★★★★

    SSH link with the remote server often encounter a long time when not operating SSH link disconnected.

    Write failed: Broken pipe

    How to resolve this error:

    •  Method 1: We can add a heartbeat packet in the local client settings, so every 60 seconds to send a request to keep the link
      ServerAliveInterval 60  
    • Method 2: We can also set the server
      ClientAliveInterval 60

    Restart ssh service:

    $ /etc/init.d/sshd restart

    No system is truly secure!

You must be logged in to reply to this topic.