Sunday, December 30, 2012

How to keep ssh alive in terminal of Macbook

In macbook, I usually use ssh in terminal to connect to remote servers. However recently the terminal often becomes unresponsive after being idle for a while, then it prints the error "Write failed: Broken pipe" and quits the ssh connection.

The solution I found is to add the following line in ~/.ssh/config:
ServerAliveInterval 120

10 comments:

  1. Thanks for this wonderful post. The information in this article is very helpful to me. Thanks a lot for sharing. Keep blogging.
    Interest Waypoint
    For dirty truth or dare questions for couples
    Best Truth or Dare Questions for Couples who are getting Married Soon

    ReplyDelete
  2. Very nice information Thank you for this Article
    Current affairs

    nice info this post
    Current Affairs Quiz

    ReplyDelete
  3. Very nice information Thank you for this Article
    Current Affairs Quiz

    nice info this post
    Current affairs

    ReplyDelete
  4. Very nice information Thank you for this Article
    Current Affairs Quiz

    Thank you so much for sharing this inforamation
    Current affairs

    ReplyDelete
  5. The article is so good and so inspiring. I have an article about wheel spinner, and these articles show If you are interested in this type of article then go name wheel spinner to the site and read it. Thank you.

    ReplyDelete