Avatar of Chris Kenward
Chris KenwardFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

Cannot seems to get SSHD running CentOS 6.5

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
Chris
Linux Distributions

Avatar of undefined
Last Comment
Chris Kenward
ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Chris Kenward
Chris Kenward
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

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.

Cheers
Chris
Avatar of Chris Kenward
Chris Kenward
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

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

All the best
Chris
Linux Distributions
Linux Distributions

A Linux distribution is an operating system made as a software collection based on the Linux kernel and, often, on a package management system and are available for a variety of systems. A typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment. Most Linux systems are open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Over three hundred distributions are in active development, including commercially backed distributions (such as Fedora, openSUSE and Ubuntu) and community-driven distributions (such as Debian, Slackware, Gentoo and Arch Linux).

29K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo