elflaco

Member
Nov 6, 2006
12
0
151
Hi All:

I have been reading and utilizing 000000000's exceptional "A Beginners Guide to Securing Your Server", but have hit a bit of a snag.

Every time I attempt to change the port to a number other than 22 per the instructions, I can't SSH in any longer. Not as root (which is disabled anyway) or as the other user in the wheel group. I either get "Access Denied" or "No address associated with nodename". I have restarted the ssh services both through the terminal and on WHM. A couple of times I've had to use the nifty little script that Chirpy supplied (thank God he's not evil) to get back into the server via SSH.

Now, as I said, I am following the guide step by step, so I haven't gotten to the part where I would install the firewall, so it isn't like I forgot to open the new port on the FW.

Is there something painfully obvious I'm missing here? I've searched the forums, as well as Google, but can't find this exact problem.

Thanks in advance for any assistance you might lend.

**Edit**

This is on a VPS running RHL 4
 
Last edited:

elflaco

Member
Nov 6, 2006
12
0
151
That's what is odd: I haven't installed a firewall yet.

I'm guessing that I need to skip ahead, install the firewall, and then go back and change the port...
 

Lyttek

Well-Known Member
Jan 2, 2004
776
4
168
Check with your datacenter to make sure they've not blocked the port upstream of you...
 

mctDarren

Well-Known Member
Jan 6, 2004
665
4
168
New Jersey
cPanel Access Level
Root Administrator
May be silly, but did you change the port on your SSH client from 22 to the new port? The port might be changed on the server but your program might still be trying on 22?
 

elflaco

Member
Nov 6, 2006
12
0
151
May be silly, but did you change the port on your SSH client from 22 to the new port? The port might be changed on the server but your program might still be trying on 22?
Not silly, as I usually forget the first time I log in, but I still get the same result when I change the port#.
 

elflaco

Member
Nov 6, 2006
12
0
151
If root is disabled - what group is wheel getting it's permissions from?
Another non-sensical account I created to make it harder to guess.

And I figured out what the issue was; I only restarted the ssh server, and not apache.

I restarted apache, and it worked fine.

Thanks to everyone for their assistance!

:)

**Edit**

I do have one question, though.

Why is the sshd_config file blank now?
 
Last edited: