Centos 5 yum doesn’t seem to support latest OpenSSH 5.2 which support many features. (it’s like 4.2)
Make sure you have development tools:
# yum install gcc
# yum install openssl-devel
# yum install pam-devel
# yum install rpm-build
And then download openssh 5.2p1
# wget ftp://mirror.planetunix.net/pub/OpenBSD/OpenSSH/portable/openssh-5.2p1.tar.gz
Now, we’re going to build RPM based on tar.gz file:
# tar xvfz openssh-5.2p1.tar.gz
# cp ./openssh-5.2p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/
# cp ./openssh-5.2p1.tar.gz /usr/src/redhat/SOURCES/
# cd /usr/src/redhat/SPECS/
# perl -i.bak -pe 's/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/' openssh.spec
# rpmbuild -bb openssh.spec
# cd /usr/src/redhat/RPMS/`uname -i`
# ls -l
-rw-r--r-- 1 root root 271758 Jun 30 12:39 openssh-5.2p1-1.i386.rpm
-rw-r--r-- 1 root root 429852 Jun 30 12:39 openssh-clients-5.2p1-1.i386.rpm
-rw-r--r-- 1 root root 268302 Jun 30 12:39 openssh-server-5.2p1-1.i386.rpm
# rpm -Uvh openssh*rpm
Preparing... ################################
1: openssh ####
2: openssh-clients ####
3: openssh-server ####
# service sshd restart
Then, RPM version of SSH installs. After restarting, it may say initlog is obsolete, but, you can ignore as that option is deprecated.
How did you get that to build/install w/o having to update openssl, and -subsequently- glibc?
Comment by tink — June 17, 2010 @ 8:26 pm
How did you get that to build/install w/o having to update openssl, and -subsequently- glibc?
+1
Comment by Aldis Kim — June 23, 2010 @ 11:42 pm
cool – seems to have worked ok on centos 5.5.
I was trying to get fuse/sshfs to run a bit faster than cold treacle and apparently there’s a bug in the openssh 4.something I had
dunno if it made any diff but there u go!
Comment by JoBloggs — August 17, 2010 @ 8:50 am