You can, however, easily compile your own RPM and manually upgrade OpenSSH. The commands below are the ones I used to install version 5.8 (the latest stable at the time of this post), but can essentially be used for any compatible version.
First, download the OpenSSH source tarball from the vendor and unpack it. You can find the tarballs at http://www.openssh.com/portable.html
wget http://mirror.esc7.net/pub/OpenBSD/OpenSSH/portable/openssh-5.8p1.tar.gzCopy the spec file and tarball:
tar -xvzf openssh-5.8p1.tar.gz
cp ./openssh-5.8p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/Do a little magic:
cp openssh-5.8p1.tar.gz /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SPECS…and build your RPM:
perl -i.bak -pe ‘s/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/’ openssh.spec
rpmbuild -bb openssh.specNow if you go back into /usr/src/redhat/RPMS/<arch> , you should see three RPMs. Go ahead and install them:
rpm -Uvh *.rpmTo verify the installed version, just type ‘ssh -v localhost’ and you should see the banner come up, indicating the new version.
No comments:
Post a Comment