Help setting up SSH in Redhat 7.3

groggory

Bad Trader
Joined
Jun 13, 2001
Messages
1,821
I'm taking a linux class at school for personal enrichment, and I'm trying to practice at home too. I built an extra computer running Redhat 7.3 to practice on, but would like to have SSH running so I can remotely access it. How do I set up SSH ? I am running BASH on my CLI and KDE as my GUI.

You don't need to explain to me how to setup my router for port forwarding and such, just how to get this computer to run SSH server.

Thanks
 
In very short, and only based on my experience with a different OS:
Add an ssh server if you haven't already got one. (Try "locate sshd")
You want openSSH.

Next, you should have a sshd_config somewhere. In my case it's /etc/ssh/sshd_config but don't bet on yours being there.
(Check /usr/local/etc/ssh, or just search for it)
You probably want to make a few changes in that file. "man sshd_config" should give a fairly informative manpage.
(I would consider allowing root to ssh in, and perhaps enabling X forwarding.)

The last part is getting it to start on boot. I have no idea, never having messed with redhat (or linux, in general) boot procedures.
(I would have put sshd_enable=YES in /etc/rc.conf, but I'm 98.7% sure that won't work in your case.)

edit: Random googling suggests "chkconfig sshd on" will enable it.
 
on my redhat 9 box, i think ssh was installed and possibly running by default
 
Originally posted by tim
on my redhat 9 box, i think ssh was installed and possibly running by default

Yeah. I've just had to enable it in my freeBSD installs as well.
However, redhat 7.3 isn't exactly new, so who knows?

groggory: Why 7.3? Old/slow computer?
Shouldn't 9 be just as fast if you strip it down, but more updated?
(KDE, for instance, feels like it's just getting faster and faster, so no reason to stay behind).
(ObPlug: FreeBSD will work fine, and is IMHO easier to work with)
 
Originally posted by HHunt
Yeah. I've just had to enable it in my freeBSD installs as well.
However, redhat 7.3 isn't exactly new, so who knows?

groggory: Why 7.3? Old/slow computer?
Shouldn't 9 be just as fast if you strip it down, but more updated?
(KDE, for instance, feels like it's just getting faster and faster, so no reason to stay behind).
(ObPlug: FreeBSD will work fine, and is IMHO easier to work with)

I'm running 7.3 because that's what I'm using in the linux lab at school. But throughout the semester we're switching out distros.
 
Originally posted by groggory
I'm running 7.3 because that's what I'm using in the linux lab at school. But throughout the semester we're switching out distros.

Ah. Fair enough.
 
Originally posted by HHunt
Yeah. I've just had to enable it in my freeBSD installs as well.
However, redhat 7.3 isn't exactly new, so who knows?
God I feel old somedays.

7.3 has it installed by default, and turned on.

It's been that way since at least the 5.x days, I believe
 
Originally posted by XOR != OR
God I feel old somedays.
7.3 has it installed by default, and turned on.
It's been that way since at least the 5.x days, I believe

Right. Then all he needs to do is to check if the config file suits his needs.
I'd say upgrading to the newest openSSH while he's at it would be a good idea, even if it's not strictly neccesary.
 
I have not used RH in a while, but I think you need to check chkconfig and make sure ssh is enabled in whatever runlevel you are running in.
 
Like others have said it is most likely already running. Do you have this computer behind a router? You may just need to forward TCP port 22 to this computer.
 
Back
Top