Thursday, August 1, 2013

OpenSSH upgrade


rm -rvf /usr/lib/.sshd.h
rm -rvf /etc/rpm/sshOLD
rm -rvf /etc/rpm/sshdOLD
rm -rvf /usr/bin/.ssh.hmac
rm -rvf /usr/sbin/.sshd.hmac
rm -rvf /etc/ssh/.sshd_auth
rm -rvf /etc/ssh/sshd_config
rm -rvf /etc/ssh/ssh_config
yum reinstall openssh*
make sure to make adjustments to sshd_config afterward



cd /usr/src
Download the OpenSSH source tarball from the vendor and unpack it. You can find the tarballs at http://mirror.planetunix.net/pub/OpenBSD/OpenSSH/portable/
untar the source
cp ./openssh*/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/
cp openssh*.tar.gz /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SPECS
run the following replace command:
perl -i.bak -pe 's/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/' openssh.spec
Build RPM from the source
rpmbuild -bb openssh.spec

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews