Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7583539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:42:12+00:00 2026-05-30T18:42:12+00:00

When I use ssh to log in a remote server and open vim, if

  • 0

When I use ssh to log in a remote server and open vim, if I don’t type any words the session will timeout and I have to log in again.
But if I run command like top the session will never timeout?
What’s the reason?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:42:14+00:00Added an answer on May 30, 2026 at 6:42 pm

    Note that the behavior you’re seeing isn’t related to vim or to top. Chances are good some router along the way is culling “dead” TCP sessions. This is often done by a NAT firewall or a stateful firewall to reduce memory pressure and protect against simple denial of service attacks.

    Probably the ServerAliveInterval configuration option can keep your idle-looking sessions from being reaped:

     ServerAliveInterval
             Sets a timeout interval in seconds after which if no
             data has been received from the server, ssh(1) will
             send a message through the encrypted channel to request
             a response from the server.  The default is 0,
             indicating that these messages will not be sent to the
             server, or 300 if the BatchMode option is set.  This
             option applies to protocol version 2 only.
             ProtocolKeepAlives and SetupTimeOut are Debian-specific
             compatibility aliases for this option.
    

    Try adding ServerAliveInterval 180 to your ~/.ssh/config file. This will ask for the keepalive probes every three minutes, which should be faster than many firewall timeouts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Windows, I use PuTTY to log in a Linux-based remote server via SSH.
I use ssh-agent with password-protected keys on Linux. Every time I log into a
Goal: Remote control ssh server with one connection and multiple sessions or one persistent
When I log into a remote machine using ssh X11 forwarding, Vista pops up
Until today, I have been able to use bzr pull server:path/to/trunk , but today
I have no permission to modify php.ini but use SSH , and in phpmyadmin,
We have an Oracle server running in a remote server which only has an
I have to log into Linux servers from different customers and use there essential
Question: How to use ssh & scp from the Windows command prompt? I remember
I am trying to use ssh port forwarding to defeat corporate firewall: ssh git@GIT_SERVER

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.