LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2003, 08:03 PM   #1
InsaneBob
Member
 
Registered: Mar 2003
Posts: 105

Rep: Reputation: 15
Allowing for incoming ssh


How do i config my firewall to allow incoming ssh. Whenever i try to access my linux box through ssh the connection always times out.
 
Old 04-11-2003, 08:05 PM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
how about telling us what distro you're using and what firewall you're running?
 
Old 04-11-2003, 08:14 PM   #3
InsaneBob
Member
 
Registered: Mar 2003
Posts: 105

Original Poster
Rep: Reputation: 15
whoops
im using the latest redhat, redhat 9, and i have no idea what firewall im using.
 
Old 04-11-2003, 08:34 PM   #4
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
run lokkit, it's a very easy program for configuring iptables
 
Old 04-11-2003, 09:13 PM   #5
InsaneBob
Member
 
Registered: Mar 2003
Posts: 105

Original Poster
Rep: Reputation: 15
I used that lokkit but it never seems to save the changes. I go back in and everything was back to the way it was.
 
Old 04-11-2003, 09:16 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Check your /etc/hosts.deny file to see if you are denying access to ssh from there. If everything is in order there then flush all your iptables rules by doing:

iptables -F
 
Old 04-11-2003, 10:47 PM   #7
InsaneBob
Member
 
Registered: Mar 2003
Posts: 105

Original Poster
Rep: Reputation: 15
ssh wasn't in /etc/hosts.deny and i flushed my iptables but still nothing
 
Old 04-11-2003, 11:28 PM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Okay so here is a real dumb question:

Is the sshd service running?

Do a:

netstat -l

thats a lowercase L, to see if ssh is listening.
 
Old 04-12-2003, 01:52 AM   #9
InsaneBob
Member
 
Registered: Mar 2003
Posts: 105

Original Poster
Rep: Reputation: 15
yup
 
Old 04-12-2003, 02:19 AM   #10
maxspeed
Member
 
Registered: Mar 2003
Posts: 41

Rep: Reputation: 15
ssh doesn't allow incoming connections to anything outside of your network by default so youll have to edit the

/etc/ssh/sshd_config file. I think all you have to do is uncomment the listen port 22 or something like that.
 
Old 04-12-2003, 12:31 PM   #11
InsaneBob
Member
 
Registered: Mar 2003
Posts: 105

Original Poster
Rep: Reputation: 15
Is that 'Port 22' or 'Listen Port 22' because i have the 'Port 22' but not the 'Listen Port 22'?
 
Old 04-12-2003, 01:44 PM   #12
InsaneBob
Member
 
Registered: Mar 2003
Posts: 105

Original Poster
Rep: Reputation: 15
Port 22 is commented though
 
  


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
cannot Allowing Incoming X Connections with xhost + libin88 Linux - Enterprise 1 11-09-2005 03:25 PM
How do I setup SSH for internet incoming? PSIPHON Linux - Networking 15 09-02-2005 08:26 AM
DHCP configuration and incoming telnet, ssh rsumbeling Linux - Networking 2 11-13-2004 10:52 AM
Fedora Linux allowing incoming SSH hwm Linux - Networking 5 09-06-2004 02:50 PM
Allowing incoming connections only from a spesific country? herc Linux - Security 1 04-12-2004 02:56 AM


All times are GMT -5. The time now is 04:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration