ssh error

Posted on 2010-01-06
Last Modified: 2012-05-08
Hi ,

When I try to ssh a server iam getting the error message

-----Server responded. connection closed

The connection to the remote host was lost. This usually means the network connection has terminated or remote host computer has rebooted .Most network outages are short so trying again may help.--------------------------

This is a recurrent issue and connection gets stuck after a certain amount of time.

How to solve this issue ,what is the root cause for this issue?

Question by:phoenix26
    LVL 9

    Accepted Solution

    What are you connecting to? Is there a time out configured?
    LVL 23

    Assisted Solution

    just ping the server and verify the response time,

    If the response time is not good, then you have to check the switch and network components

    Author Comment

    Hi vito,

               Iam trying to connect to a server .Where to check this time out.I believe in router?am i right ?

    To itkamaraj,

    ping not allowed.

    Please let me know any other work around
    LVL 9

    Assisted Solution

    There should be timeout values in the SSH config file on the server. The location depends on the OS you're using.

    Just to clarify, when does this error happen? Is it when you initially try to logon, or is it after a certain period of idle time after you've already successfully logged in?
    LVL 30

    Assisted Solution

    by:Kerem ERSOY

    Try to launch ssh with v switch such as this:

    ssh -vvv  user@destination

    and post the output here.  You might also want to post excerpts from your /var/log/messages concerning the SSH session at both ends.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Title # Comments Views Activity
    Backup Cisco Configs 6 42
    Native VLAN question 6 54
    Switchport Uptime and Ports not used for a while 20 107
    WAN connection scenario 11 53
    As dyndns has reduced the capabilities of the free service, I looked around for other free providers of Dynamic DNS service. After testing several I decided to move my DNS hosting to Hurricane Electric as then domains that require dynamic hostnam…
    Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
    Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now