Announcement Announcement Module
Collapse
No announcement yet.
Way to avoid ssh connection timeout & freezing of terminal tab Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Way to avoid ssh connection timeout & freezing of terminal tab

    When we connect via ssh terminal to certain servers, it timeouts and “freezes” the terminal (doesn’t accept, doesn’t disconnect, can’t Ctrl-C to kill the ssh process or anything).

    This is because the SSHD service (In the server) closes the connection if it hear noting from the client for a while, we avoid this by adding the below two line in your ssh conf file under your user (~/.ssh/config).

    Open the file using any editor.

    vi ~/.ssh/config

    Host *
    ServerAliveInterval 240


    After adding the above lines, the client machine will send a signal to the server in every four min.

  • #2
    Actually I was running with the same issue, now it's fixed.

    Thank you for the great info

    Comment


    • #3
      I am pleased to hear that!

      Comment

      Tag Cloud Tag Cloud Module
      Collapse
      Working...
      X