• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 694
  • Last Modified:

SSH Connection refused 5 minutes after last session was established

I'm running Linux RedHat 5.
Have a problem connecting to the server via SSH .
To solve it , I'm opening SSH session locally from this server to some other host .
The I'm trying to open SSH to that server remotely again and it works.
5 minutes after then , the session disconnecting and I receiveing again the Connection Refused message.
0
aquasw
Asked:
aquasw
1 Solution
 
LuxanaCommented:
first try to see more output wehn you run ssh

ssh -vvv remote@host

this gives you idea what is going wrong..
0
 
aquaswAuthor Commented:
This is the output :

OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to remotehost [remotehost] port 22.
debug1: connect to address remotehost port 22: Connection refused
ssh: connect to host remotehost port 22: Connection refused
0
 
omarfaridCommented:
Hi,

Can you check if you have another server / equipment connected to the network with duplicate IP address?

It could be that you have another system with the same IP address.

Can you check the arp table when you get the connection and after it get refused and compare the MAC addresses (if both servers are on the same subnet)?

arp -a
0
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

 
TintinCommented:
"Connection refused" messages are generally due to firewall blocking the request.  Do you have a firewall between the two servers or running on the server with ssh?
0
 
ezatonCommented:
I would bet on conflicting IP address. Had similar cases which looked quite the same.
0
 
ilkerduranCommented:
hi, please look at the syslog file(ex: messages) on the server and determine the cause of the ssh crash. maybe your ssh server went down unexpectidly, you may have a sshd update.
regards,
ilker
0
 
aquaswAuthor Commented:
Thanks, the problem was in the duplicate IP ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

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