DBA GENESIS

  • Courses

  • Certification

  • Contact

  • Members

  • More

    Use tab to navigate through the menu items.

    Book a mock interview and get instant feedback - Learn More

    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    Arun Kumar
    Oct 25, 2021

    How to keep ssh connection alive in mac?

    in General Discussion

    I had this strange problem of mac terminal connection loss frequently anytime I connected to a remote server. I know there is a setting in Putty (on windows) to alter SSH Keep Alive time which prevents frequent disconnect from servers.


    On Mac OS X, simply open /etc/ssh/ssh_config and add below at the last line

    vi /etc/ssh/ssh_config
    
    ServerAliveInterval 10

    This will allow terminal to send a null packet to connected server every 10 seconds and will stop mac terminal session from disconnecting 👍👍👍

    0 answers0 replies
    Comments

    Share Your ThoughtsSign up to leave a comment.

    0 comments
    Similar Posts
    • How to prepare for 1z0-062 exam.
    • How to prepare for 1Z0-071 certification
    • Login issue to connect auxiliary database

    support@dbagenesis.com

    • Facebook
    • Instagram
    • Twitter
    • YouTube

    © 2023 Biggest Database Forum by DBA Genesis