Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-04-2004, 02:59 PM   #1
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
SSH on Redhat 7.3

I have a silly question... as usual.

I have a friend that is still using RH 7.3. It works great for him, but he's running telnet sessions and I'm trying to get ssh working for him as a better source of security, but I'm running into a few problems I hope someone can help with.

1. How do I get the sshd to start after the computer is rebooted? For some reason, the sshd doesn't come. It starts just fine after doing a /etc/rc.d/init.d/sshd start.

2. The IPchains firewall is also blocking any SSH connection from coming in. Can someone cut and past what needs to be added into the ipchains config file to allow anyone to connect via SSH? I'm having to turn the firewall off to get through and I don't know much about IPchains.

Thanks again for the help!
Old 08-04-2004, 03:10 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
1) Try running:
chkconfig sshd on

2) If you aren't using a custom ruleset then just run "lokkit" and allow connections to port 22/tcp.

If you are only using the version that came with 7.3 then you should probably look at upgrading as there have been several security fixes since then:
Old 08-04-2004, 10:59 PM   #3
LQ Newbie
Registered: Feb 2003
Location: Virgin Islands
Distribution: Ubuntu, Debian, CentOS, Fedora
Posts: 15

Rep: Reputation: 0
I'm not to sure about the ipchains deal but I got ssh running on a 7.3 RH box (which is not in front of me and I have a firmware firewall locked down in front of that system right now DULP!). I seem to recall going in to etc/rc.d/??rc3.d?? not to sure the dir structure but where the run level 3 scripts are kept and if ssh was installed with the org. installation you should a bunch of links that begin with K## or S##.

The K is for kill and the S is for start the #'s are different numbers for process's. If you create a link for sshd that begins with S the system will start it every time you boot the box. Man ln for info on creating the link and 'less' or 'cat' some of the files in the rc3.d directory to see how to pass cmd line switches to the deamon..,
Old 08-05-2004, 09:26 AM   #4
Erebus Bat
LQ Newbie
Registered: Jul 2004
Distribution: Ubuntu 10.04 (Lucid)
Posts: 25

Rep: Reputation: 15

The following commands will allow incoming SSH connections on any interface, these will need to be ran everytime the machine boots up.

##Allow SSH connections from any interface
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
Old 08-06-2004, 06:02 PM   #5
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
You all are awesome... Thank you all for the replies!


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
Need help setting up SSH on RedHat Dave177 Linux - Newbie 4 12-20-2003 10:04 AM
ssh timeout RedHat 9 clinton Linux - Newbie 2 12-13-2003 06:07 AM
Redhat 8 ssh problems Evilone Linux - Software 3 03-25-2003 12:57 PM
Redhat 8 and SSH JCZorch Linux - Networking 5 01-13-2003 04:11 AM
SSH in redhat 7.2 etfetius Linux - Distributions 4 03-18-2002 03:30 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration