Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    46

    Default How to reinstall SSH

    I accidently uninstalled SSH. How do I reinstall it?

  2. #2
    Member
    Join Date
    Jan 2007
    Location
    The Netherlands
    Posts
    179

    Default

    Are you serious or is this a joke? realy ssh and not ssl?

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    46

    Default

    No I am serious.....

  4. #4
    Member
    Join Date
    Apr 2007
    Location
    Bakersfield, California
    Posts
    270

    Default

    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
    Last edited by Voltar; 05-03-2007 at 06:43 PM. Reason: Added note.

  5. #5
    Member
    Join Date
    Jan 2007
    Posts
    46

    Default

    I am using cent os and i use the config explorer plugin and the commands seem to work in there. Its very odd.

  6. #6
    Member
    Join Date
    Jan 2007
    Location
    The Netherlands
    Posts
    179

    Default

    You can try to: WHM --> Software --> Install A RPM --> and sellect there openssh-server and push install

  7. #7
    Member
    Join Date
    Jan 2007
    Posts
    46

    Default

    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/...ta/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. #8
    Member
    Join Date
    Apr 2007
    Location
    Bakersfield, California
    Posts
    270

    Default

    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. #9
    Member
    Join Date
    Jan 2007
    Posts
    46

    Default

    error: Failed dependencies:
    openssh = 3.9p1-8.RHEL4.15 is needed by openssh-server-3.9p1-8.RHEL4.15.i386

  10. #10
    Member
    Join Date
    Apr 2007
    Location
    Bakersfield, California
    Posts
    270

    Default

    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. #11
    Member
    Join Date
    Jan 2007
    Posts
    46

    Default

    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. #12
    Member
    Join Date
    Apr 2007
    Location
    Bakersfield, California
    Posts
    270

    Default

    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. #13
    Member
    Join Date
    Jan 2007
    Posts
    46

    Default

    Nevermind I restarted SSH. It now works. Thank you guys!

Similar Threads & Tags
Similar threads

  1. Reinstall ssh defaults
    By maquinadigital in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-23-2010, 04:21 AM
  2. How to connect in SSH after create key in Manage SSH Keys
    By konrath in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-03-2009, 10:57 PM
  3. SSH login failure - Can SSH password be RESETTED?
    By guilliam in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-10-2006, 04:00 PM
  4. Check Server in SSH (the service status in whm, but in ssh)
    By drumhtd in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-30-2005, 04:16 PM
  5. Replies: 1
    Last Post: 12-24-2003, 01:43 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube