LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSHD Connection Problems (https://www.linuxquestions.org/questions/linux-newbie-8/sshd-connection-problems-38726/)

KillerCheeto 12-18-2002 12:03 AM

SSHD Connection Problems
 
I was just recompiling my server today... and when I go to compile OpenSSH with the SSHD configured deally... I think I did it all right.

The reason for this hypothisis is that I can connect to the machine FROM the machine... and it logs in perfectly... so I know that the software is up and running.

BUT... I can't connect from any REMOTE boxes... it says "Network timeout" or whatnot...

I am running behind a router... and yes the port is forwarded :? ...

Just I dont have any ideas on what could make the SSHD except any remote connections...

albean 12-18-2002 08:51 AM

If you have another computer behind the router with your server try disabling the firewalls on both and then try to connect. A few days ago I was setting up sshd and was sure that I had it and the firewalls all configured correctly. Turned out my configurations for the firewall were not sticking. After I disabled the firewalls and connected fine I knew that it was a problem there and not with my ssh set-up. If you can connect then you will have to go back and figure out how to get your firewall configured.

KillerCheeto 12-18-2002 09:44 AM

Okay, since I have no clue on IPChains config file... I just took out all the REJECTs in the config file... and it works! Yay...

This is my file...

# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the
# firewall; such entries will *not* be listed here.
:input ACCEPT
:forward ACCEPT
:output ACCEPT
-A input -s 0/0 67:68 -d 0/0 67:68 -p udp -i eth0 -j ACCEPT
-A input -s 0/0 67:68 -d 0/0 67:68 -p udp -i eth1 -j ACCEPT
-A input -s 0/0 -d 0/0 -i lo -j ACCEPT
#-A input -p tcp -s 0/0 -d 0/0 0:1023 -y -j REJECT
#-A input -p tcp -s 0/0 -d 0/0 2049 -y -j REJECT
#-A input -p udp -s 0/0 -d 0/0 0:1023 -j REJECT
#-A input -p udp -s 0/0 -d 0/0 2049 -j REJECT
#-A input -p tcp -s 0/0 -d 0/0 6000:6009 -y -j REJECT
#-A input -p tcp -s 0/0 -d 0/0 7100 -y -j REJECT

Which REJECT line is stoping my SSH from connecting?

albean 12-18-2002 11:52 AM

Unfortunately I don't know much about firewalling. In RH 7.3 I type setup in a terminal window, select Firewall Configuration, select the customize button and then X the allow incoming SSH (thats from memory - could be different for you).

KillerCheeto 12-18-2002 01:36 PM

Since I'm behind a natural firewall... I dont care too much about it for right now. Thanks anyways...


All times are GMT -5. The time now is 01:53 AM.