CentOS 5.7 Enable SSH

Posted on 2011-11-01
Last Modified: 2012-08-13
How do i enable CentOS 5.7 to receive SSH connections?  I would prefer to set this up via the GUI
Question by:deklinm
    LVL 31

    Accepted Solution

    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.
    LVL 21

    Assisted Solution

    See if this helps.  You basically have to install the openssh-server package and start the service from /sbin.

    LVL 6

    Assisted Solution

    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
    # telnet localhost 22


    LVL 1

    Assisted Solution

    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
    or something similar.

    Tell me what you get.

    LVL 1

    Expert Comment

    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)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now