LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH into RH 7.3 refused (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-into-rh-7-3-refused-120465/)

Peanut 11-27-2003 10:50 AM

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*

jkobrien 11-27-2003 10:53 AM

Have you added the remote system to /etc/hosts.equiv?

John

Peanut 11-27-2003 11:03 AM

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

jkobrien 11-27-2003 11:14 AM

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

Peanut 11-27-2003 11:15 AM

oh well thanks for trying :)

Peanut 11-28-2003 10:04 AM

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.

mac_phil 11-28-2003 11:07 AM

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

Peanut 11-28-2003 01:50 PM

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.

brianabroad 11-28-2003 02:31 PM

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

Peanut 11-28-2003 02:45 PM

"/sbin/ipchains --flush"


did the trick .... thanks so much

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


All times are GMT -5. The time now is 03:50 PM.