Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 686
  • Last Modified:

ssh error

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?

Thanks,
phoenix
0
phoenix26
Asked:
phoenix26
4 Solutions
 
Vito_CorleoneCommented:
What are you connecting to? Is there a time out configured?
0
 
Kamaraj SubramanianApplication Support AnalystCommented:
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
0
 
phoenix26Author Commented:
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
0
 
Vito_CorleoneCommented:
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?
0
 
Kerem ERSOYPresidentCommented:
Hi,

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.

Cheers,
K.
0

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now