LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2003, 10:50 AM   #1
Peanut
LQ Newbie
 
Registered: Jun 2003
Location: The Loo
Distribution: RH 9
Posts: 12

Rep: Reputation: 0
SSH into RH 7.3 refused


Hello,
I am trying to ssh into my rh 7.3 machine and it is refused each time. I have tried using putty and my rh 9 machine.

I have done an nmap on the 7.3 machine and port 22 is open. Does anyone have any ideas? Thanks alot.



*edit* i don't know how much this matters but i am able to ssh from the 7.3 into the 9 *edit*

Last edited by Peanut; 11-27-2003 at 10:57 AM.
 
Old 11-27-2003, 10:53 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Have you added the remote system to /etc/hosts.equiv?

John
 
Old 11-27-2003, 11:03 AM   #3
Peanut
LQ Newbie
 
Registered: Jun 2003
Location: The Loo
Distribution: RH 9
Posts: 12

Original Poster
Rep: Reputation: 0
There is no such file, and is there some reason that i should create one? Neither one of my RH machines have that file on them. The RH 9 has no problems what so ever
 
Old 11-27-2003, 11:14 AM   #4
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Hmmm. I just now set up ssh on my machines and read somewhere (webpage) that you needed entries in hosts.equiv. But after reading your post I renamed the file on one and ssh still works.

Must have been obsolete information. Sorry, I can't help you any further then.

John
 
Old 11-27-2003, 11:15 AM   #5
Peanut
LQ Newbie
 
Registered: Jun 2003
Location: The Loo
Distribution: RH 9
Posts: 12

Original Poster
Rep: Reputation: 0
oh well thanks for trying
 
Old 11-28-2003, 10:04 AM   #6
Peanut
LQ Newbie
 
Registered: Jun 2003
Location: The Loo
Distribution: RH 9
Posts: 12

Original Poster
Rep: Reputation: 0
Ok .. i have made some progress.... turns out when i do a

nmap localhost

on the 7.3 machine it shows that 22 is open along with some others. However when i do an nmap from a different computer

nmap 192.168.1.104

it only shows one port open 1024


so its some kind of firewall issue as far as i can tell. i have done some looking and i am finding out to change my iptables config file, but there is no such file. What i found that was close and appears to be similar is an ipchains file. I am wondering if the ipchains in the /etc/sysconfig is the correct file that controls the firewall or not.

Last edited by Peanut; 11-28-2003 at 10:50 AM.
 
Old 11-28-2003, 11:07 AM   #7
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
Yes, you have a firewall problem. You need to open port 22, at least to the computers you want to SSH from.

Another way to change firewall rules is with Webmin. webmin.org
 
Old 11-28-2003, 01:50 PM   #8
Peanut
LQ Newbie
 
Registered: Jun 2003
Location: The Loo
Distribution: RH 9
Posts: 12

Original Poster
Rep: Reputation: 0
where is the config file for that?

or how can i even turn it off?.... i am behind a router so i am going to have to port forward anyway so it might be easier to just turn it(the firewall) off for the time being.
 
Old 11-28-2003, 02:31 PM   #9
brianabroad
LQ Newbie
 
Registered: Aug 2003
Location: Taiwan, US
Posts: 17

Rep: Reputation: 0
Just try doing "/sbin/ipchains --list" to list your firewall configuration.

To flush your chains (get rid of them, and not have ANY firewall), do:
"/sbin/ipchains --flush"

Yes, the config file should be /etc/sysconfig/ipchains I believe. This worked fine for me in RH7.3, and I have now upgraded to RH9
 
Old 11-28-2003, 02:45 PM   #10
Peanut
LQ Newbie
 
Registered: Jun 2003
Location: The Loo
Distribution: RH 9
Posts: 12

Original Poster
Rep: Reputation: 0
"/sbin/ipchains --flush"


did the trick .... thanks so much

ssh is working fine... now off to config ftp and finish doing samba

Last edited by Peanut; 11-28-2003 at 03:17 PM.
 
  


Reply


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 refused to connect paulmedic555 Linux - Networking 2 11-01-2004 12:45 PM
ssh connection refused rguptatx Red Hat 4 11-13-2003 06:18 PM
SSH - Refused Connections bfloeagle Linux - Networking 6 08-31-2001 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration