Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 11-13-2003, 02:14 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
ssh connection refused


I am getting connection refused when I try to ssh to
RedHat 9.0 Linux installation on IBM xServer 335. Both
machines are inside the firewall.

I did a medium security installation and expected ssh
to work by default. I checked sshd is running. On the IBM
machine I can ssh to itself successfully. From IBM, I can
also browse the web, so I can see outside network. I tried
adding ssd: ALL to /etc/hosts.allow but it didn't make
any difference. From my machine, I can ping the IBM xServer.

Any suggestions would be greatly appreciated.

Old 11-13-2003, 02:35 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
there will be an ssh log file in there somewhere... maybe you're trying to do it as root or something? find the log file and it should be pretty obvious. you've given us very little info to go on though....
Old 11-13-2003, 11:51 AM   #3
LQ Newbie
Registered: Sep 2003
Posts: 5

Original Poster
Rep: Reputation: 0
log file attached

All sshd related messages in /var/log attached:
[root@eeyore log]# grep sshd * | grep 13
boot.log:Nov 13 10:34:57 eeyore sshd: sshd -TERM succeeded
boot.log:Nov 13 10:36:53 eeyore sshd: succeeded
messages:Nov 13 10:34:57 eeyore sshd: sshd -TERM succeeded
messages:Nov 13 10:36:53 eeyore sshd: succeeded
secure:Nov 13 10:34:57 eeyore sshd[1767]: Received signal 15; terminating.
secure:Nov 13 10:36:53 eeyore sshd[1769]: Server listening on port 22.

on the remote host trying to connect it says:
ssh: connect to address port 22: Connection refused
Old 11-13-2003, 02:09 PM   #4
Registered: Nov 2003
Location: Los Angeles
Distribution: Gentoo, FC4, FreeBSD
Posts: 34

Rep: Reputation: 15
Sounds Like IPTABLES

Sounds like iptables (or ipchains) isn't allowing connections on port 22. A quick and dirty way to check in to type "/sbin/service iptables stop" as root then try to connect by SSH. This should flush all the chains and reset to the default accept policy. "iptables -L" will list all the active chains.

Here is a HOWTO for ipchains which pretty well applies to iptables too.
Old 11-13-2003, 06:18 PM   #5
LQ Newbie
Registered: Sep 2003
Posts: 5

Original Poster
Rep: Reputation: 0
thank you !

disabling the firewall fixed the problem as you pointed out. Thanks!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH - Connection Refused eminence Linux - Networking 14 03-06-2012 12:22 AM
SSH Connection Refused? lowpro2k3 Linux - Networking 2 11-04-2009 11:02 AM
ssh in fedora: connection refused zwanzig Linux - Networking 8 06-11-2004 04:26 AM
ssh secure connection refused lugoteehalt Linux - Networking 2 03-19-2004 10:33 AM
SSH port...Connection....refused?? Miyamoto Mandriva 6 08-26-2003 04:03 PM

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration