Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1662
  • Last Modified:

CentOS 5.7 Enable SSH

How do i enable CentOS 5.7 to receive SSH connections?  I would prefer to set this up via the GUI
0
deklinm
Asked:
deklinm
4 Solutions
 
farzanjCommented:
It is very easy without GUI

Just issue the commands

1.  Check ssh is installed.
rpm -q openssh
this should show you the package.

2.  issue command
service sshd start
chkconfig sshd on

This would start the service.
0
 
mcsweenSr. Network AdministratorCommented:
See if this helps.  You basically have to install the openssh-server package and start the service from /sbin.

http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-openssh-server-config.html

0
 
mohansahuCommented:
Hi,
OpenSSH Installations under CentOS Linux,
# yum -y install openssh-server openssh-clients
Start the service:
# chkconfig sshd on
# service sshd start
Make sure port 22 is opened: or not
# netstat -tulpn | grep :22
OR
# telnet localhost 22

MS


MS
0
 
dryzoneCommented:
do the following

$] /etc/rc.d/init.d |grep -i ssh    (for RH based linux)
$] /etc/init.d |grep -i ssh (for debian hased Linux)

As I can remember Centos is RH derived, so firstr one should work, but tey both at command line as root user.
See what you get.

There should be  a result such as
ssh-common
ssh-server
or something similar.

Tell me what you get.

 
0
 
dryzoneCommented:
Correction:
I forgot cat command to precede instructions in previous post.
Replace with this

$] cat /etc/rc.d/init.d |grep -i ssh    (for RH based linux)
$] cat /etc/init.d |grep -i ssh (for debian hased Linux)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now