Quick question:

In RHEL5.5 there is OpenSSH 4.3b2 but I really need jailed root functionality (available from 4.8b1 I think). I am working on a dedicated server over ssh. Is it safe to yum remove openssh and then install newer version or will I loose connection once removed openSSH and will be unable to install new version/connect to server at all?

BTW. Can I 'yum' never version or will I have to compile it from the source or something?

  • What exactly do you need for the jailed root? Do you need just sftp? – ghm1014 Jul 13 '11 at 21:58
  • Define "install new version". – Ignacio Vazquez-Abrams Jul 14 '11 at 7:17

While it is true that you can yum update or yum upgrade, you only get security patches in RHEL updates -- very rarely new features. The current version in RHEL 5 is 4.3p2-72.el5_6.3 which probably doesn't have the chroot features you want.

The good news is that you can build a RPM of the new(er) release that has the feature, then "upgrade" your system to that; yum should leave it alone (however you get to do the security updates yourself in the future). My notes for doing this for CentOS 5 (which is pretty close to RHEL 5) are at http://wiki.xdroop.com/space/Linux/Building+OpenSSH-Portable+for+CentOS

| improve this answer | |

You should be able to yum upgrade openssh while the service is running. The installation process should leave the running service alone and loaded into memory, and replace all the files on the filesystem underneath it. The next time you reboot or restart sshd, then it will start up the newer version instead.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.