LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-18-2002, 01:03 AM   #1
KillerCheeto
LQ Newbie
 
Registered: Nov 2002
Location: KC Missouri
Distribution: Fedora Core
Posts: 20

Rep: Reputation: 0
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...
 
Old 12-18-2002, 09:51 AM   #2
albean
Member
 
Registered: Sep 2002
Distribution: fc2
Posts: 113

Rep: Reputation: 15
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.
 
Old 12-18-2002, 10:44 AM   #3
KillerCheeto
LQ Newbie
 
Registered: Nov 2002
Location: KC Missouri
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
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?
 
Old 12-18-2002, 12:52 PM   #4
albean
Member
 
Registered: Sep 2002
Distribution: fc2
Posts: 113

Rep: Reputation: 15
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).
 
Old 12-18-2002, 02:36 PM   #5
KillerCheeto
LQ Newbie
 
Registered: Nov 2002
Location: KC Missouri
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
Since I'm behind a natural firewall... I dont care too much about it for right now. Thanks anyways...

Last edited by KillerCheeto; 12-18-2002 at 02:44 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
sshd : connection refused alexklant Ubuntu 11 04-19-2009 04:37 PM
sshd refusing connection ??? mayank_a Linux - Security 1 10-16-2005 01:50 AM
sshd & proftpd refuses remote connection devito Linux - Networking 5 10-02-2005 07:21 PM
sshd refusing remote connection from SecureCRT 60s TV Batman *BSD 2 06-08-2005 05:45 PM
SSHd connection problem akumar_net Linux - Enterprise 1 03-03-2005 07:46 AM


All times are GMT -5. The time now is 10:46 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