Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    2

    Default How to upgrade ssh on cpanel server

    I tried to upgrade my version of ssh on our cpanel server using the following options ./configure --prefix=/opt --sysconfdir=/etc/ssh in order to match what was already in place and working with cpanel. I finished compiling, installing and restarted sshd through whm. I was able to log in through ssh fine but when i ran ssh -V the old version is still showing up instead of the new on even after restarting sshd. Did I install it in the wrong place? Could someone send me step by step directions to get this upgraded. Thanks in advance!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Posts
    207
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    I'm just wondering why you are manually building SSH and not just using your OS's package manager?

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge Zishan's Avatar
    Join Date
    Aug 2005
    Posts
    104

    Default

    Quote Originally Posted by drew5746 View Post
    I tried to upgrade my version of ssh on our cpanel server using the following options ./configure --prefix=/opt --sysconfdir=/etc/ssh in order to match what was already in place and working with cpanel. I finished compiling, installing and restarted sshd through whm. I was able to log in through ssh fine but when i ran ssh -V the old version is still showing up instead of the new on even after restarting sshd. Did I install it in the wrong place? Could someone send me step by step directions to get this upgraded. Thanks in advance!
    You added --prefix=/opt that will install the ssh in /opt directory. When you run any command like "ssh", the kernel checks for that binary in the current directory and then the paths mentioned in $PATH environmental variable. I believe that you have not added /opt to $PATH variable. So what you can do is add /opt in $PATH variable but before /usr/bin so that the kernel looks for ssh binary in /opt instead of the default installation.

  4. #4
    Member viraj's Avatar
    Join Date
    Sep 2006
    Location
    India
    Posts
    209
    cPanel/Enkompass Access Level

    DataCenter Provider

    Smile

    Hi,

    You can also try using 'Yum' to get the latest version of SSH installed/upgraded.
    Login to SSH as root, backup the existing configuration folder [/etc/ssh/] & execute "yum upgrade openssh*" or "yum install openssh*".
    After the process is complete, make sure to restart the SSH service [service sshd restart]

  5. #5
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Quote Originally Posted by viraj View Post
    You can also try using 'Yum' to get the latest version of SSH installed/upgraded
    Great advice if they are using a RedHat flavor, but they never mentioned their OS. Zishan is right - make sure all files from the old install are gone before installing to a new location.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I have been using a slightly different configure line over at: http://www.eth0.us/sshd

    If you do follow that just make sure you have upgraded to the latest version of both.

Similar Threads & Tags
Similar threads

  1. MySQL Upgrade via SSH.
    By comp99 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-21-2011, 06:41 AM
  2. cPanel + OpenVZ + CentOS 4.5 upgrade, SSH failure
    By WK-Anthony in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-19-2007, 04:46 PM
  3. ssh keys on cPanel server
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-19-2006, 05:46 PM
  4. user's SSH access denied after last cPanel upgrade.
    By jols in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 12-05-2005, 06:37 PM
  5. 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
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube