LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


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

Rep: Reputation: 0
ssh connection refused


Hi,

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.

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

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
rguptatx
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 0.0.0.0 port 22.

on the remote host trying to connect it says:
ssh: connect to address 192.168.19.51 port 22: Connection refused
 
Old 11-13-2003, 02:09 PM   #4
fearofcarpet
Member
 
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.

http://www.tldp.org/HOWTO/IPCHAINS-HOWTO.html
 
Old 11-13-2003, 06:18 PM   #5
rguptatx
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!

Rakesh
 
  


Reply



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 15 02-11-2020 09:48 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:28 PM.

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