We help IT Professionals succeed at work.

Cannot seems to get SSHD running CentOS 6.5

Chris Kenward
Last Modified: 2017-04-16
Hi Folks

I have installed SSH so many times on CentOS 6.5 servers and they all run perfectly. The difference with my latest server is that I've left the Gnome interface running and the server is running in runlevel 5.

I have edited the sshd_config file to permit root login and have selected a specific port to run on i.e. 112.

I have disabled IP Tables and, as far as I am aware, SELinux is not running on the server although I'm not 100% certain of that.

When I type:
# service sshd restart I always get "Failed" first for the stop and then OK for the start.

If I do a ps -ax | grep ssh I get:

  2357 ?        S      0:00 /usr/bin/ck-xinit-session /usr/bin/ssh-agent /etc/X11/xinit/Xclients
 2590 ?        Ss     0:00 /usr/bin/ssh-agent /etc/X11/xinit/Xclients
14698 pts/1    S+     0:00 grep ssh

Can anyone tell me where I'm going wrong?

All the best
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
Chris KenwardDirector


Hi there serialband

I wasn't aware that one shouldn't use less than 1024 as the port number. I have 43 servers running, all using 112 as the port for SSH and all running perfectly well. The only difference between this new server and all the others is that the others are all running with runlevel 3 and this one is running runlevel 5 (the Gnome interface that comes with CentOS).

I'll try changing the port to 1026 and see what happens, then I'll get back to you.

Thanks for the response - much appreciated.

Chris KenwardDirector


Thanks very much serialband! You were 100% correct. I changed the port and it worked immediately.

All the best
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.