The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to reinstall SSH

Discussion in 'General Discussion' started by grabyourhosting, May 3, 2007.

  1. grabyourhosting

    grabyourhosting Well-Known Member

    Joined:
    Jan 18, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    I accidently uninstalled SSH. How do I reinstall it?
     
  2. rone

    rone Well-Known Member

    Joined:
    Jan 14, 2007
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    Are you serious or is this a joke? realy ssh and not ssl?
     
  3. grabyourhosting

    grabyourhosting Well-Known Member

    Joined:
    Jan 18, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    No I am serious..... :(
     
  4. Voltar

    Voltar Well-Known Member

    Joined:
    Apr 30, 2007
    Messages:
    269
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bakersfield, California
    Well, I don't know how you could do it, but

    Code:
    yum install openssh-server
    as root should work.

    You might have to ask your server provider to do it for you.

    Edit: That would work on RedHat and CentOS type distros
     
    #4 Voltar, May 3, 2007
    Last edited: May 3, 2007
  5. grabyourhosting

    grabyourhosting Well-Known Member

    Joined:
    Jan 18, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    I am using cent os and i use the config explorer plugin and the commands seem to work in there. Its very odd.
     
  6. rone

    rone Well-Known Member

    Joined:
    Jan 14, 2007
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    You can try to: WHM --> Software --> Install A RPM --> and sellect there openssh-server and push install
     
  7. grabyourhosting

    grabyourhosting Well-Known Member

    Joined:
    Jan 18, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Interesting. There is no RPMs in the Install RPM area and when I try to install Open SSH it gives me the following error: # cd /
    # yum install openssh-server
    http://download.lxlabs.com/download/update/centos-5/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    Cannot open/read repomd.xml file for repository: lxlabsupdate
    failure: repodata/repomd.xml from lxlabsupdate: [Errno 256] No more mirrors to try.
    Error: failure: repodata/repomd.xml from lxlabsupdate: [Errno 256] No more mirrors to try.
    Setting up Install Process
    Setting up repositories
     
  8. Voltar

    Voltar Well-Known Member

    Joined:
    Apr 30, 2007
    Messages:
    269
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bakersfield, California
    Code:
    wget http://isoredirect.centos.org/centos/4/os/i386/CentOS/RPMS/openssh-server-3.9p1-8.RHEL4.15.i386.rpm
    
    rpm -Uvh openssh-server-3.9p1-8.RHEL4.15.i386.rpm
    Not 100% on that, there might be dependencies you need.
     
  9. grabyourhosting

    grabyourhosting Well-Known Member

    Joined:
    Jan 18, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    error: Failed dependencies:
    openssh = 3.9p1-8.RHEL4.15 is needed by openssh-server-3.9p1-8.RHEL4.15.i386
     
  10. Voltar

    Voltar Well-Known Member

    Joined:
    Apr 30, 2007
    Messages:
    269
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bakersfield, California
    download and install it first.

    Code:
    http://isoredirect.centos.org/centos/4/os/i386/CentOS/RPMS/openssh-3.9p1-8.RHEL4.15.i386.rpm
     
  11. grabyourhosting

    grabyourhosting Well-Known Member

    Joined:
    Jan 18, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    It says # cd /
    # rpm -Uvh openssh-server-3.9p1-8.RHEL4.15.i386.rpm
    Preparing... ##################################################
    package openssh-server-3.9p1-8.RHEL4.15 is already installed
    #

    Is there any way to reinstall cpanel? do a full reinstall without a total data loss? I have over 60 accounts on this server.
     
  12. Voltar

    Voltar Well-Known Member

    Joined:
    Apr 30, 2007
    Messages:
    269
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bakersfield, California
    I don't think you need to reinstall to fix the problem, have you tried restarting sshd in WHM now because it seems that ssh is still/already installed.

    WHM >> Restart Services >> SSH server
     
  13. grabyourhosting

    grabyourhosting Well-Known Member

    Joined:
    Jan 18, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Nevermind I restarted SSH. It now works. Thank you guys! :D
     
Loading...

Share This Page