We help IT Professionals succeed at work.

SSH Connection refused 5 minutes after last session was established

722 Views
Last Modified: 2008-01-09
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.
Comment
Watch Question

Commented:
first try to see more output wehn you run ssh

ssh -vvv remote@host

this gives you idea what is going wrong..

Author

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
CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2007

Commented:
"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?

Commented:
I would bet on conflicting IP address. Had similar cases which looked quite the same.
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

Author

Commented:
Thanks, the problem was in the duplicate IP ...
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.