http://meshfields.de/sftp-chroot-centos/
http://binblog.info/2009/02/27/packaging-openssh-on-centos/
How to install openssh 5 on Centos 5
- Execute this in shell
- rpm -qa | grep ssh && yum -y install gcc automake autoconf libtool make openssl-devel pam-devel rpm-build && wget http://ftp.halifax.rwth-aachen.de/openbsd/OpenSSH/portable/openssh-5.6p1.tar.gz && wget http://ftp.halifax.rwth-aachen.de/openbsd/OpenSSH/portable/openssh-5.6p1.tar.gz.asc && wget -O- http://ftp.halifax.rwth-aachen.de/openbsd/OpenSSH/portable/DJM-GPG-KEY.asc | gpg --import && gpg openssh-5.6p1.tar.gz.asc && tar zxvf openssh-5.6p1.tar.gz && cp openssh-5.6p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/ && cp openssh-5.6p1.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` && uname -i && ls -l && rpm -Uvh openssh*rpm
- Confirm the installation
- rpm -qa | grep ssh
Or you can just add the CentALT repo.
ReplyDeletehttp://centos.alt.ru/pub/repository/centos/readme.txt
then run "yum update openssh"
Thanks for sharing Alex
ReplyDeleteI get RPM-BUILD errors:
ReplyDeleteRPM build errors:
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man1/scp.1*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man1/ssh-keygen.1*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man8/ssh-keysign.8*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man8/ssh-pkcs11-helper.8*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man1/ssh.1*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man5/ssh_config.5*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man1/slogin.1*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man1/ssh-agent.1*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man1/ssh-add.1*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man1/ssh-keyscan.1*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man1/sftp.1*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man8/sshd.8*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man5/moduli.5*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man5/sshd_config.5*
File not found by glob: /var/tmp/openssh-5.6p1-buildroot/usr/share/man/man8/sftp-server.8*
Installed (but unpackaged) file(s) found:
/usr/share/man/cat1/scp.1
/usr/share/man/cat1/sftp.1
/usr/share/man/cat1/slogin.1
/usr/share/man/cat1/ssh-add.1
/usr/share/man/cat1/ssh-agent.1
/usr/share/man/cat1/ssh-keygen.1
/usr/share/man/cat1/ssh-keyscan.1
/usr/share/man/cat1/ssh.1
/usr/share/man/cat5/moduli.5
/usr/share/man/cat5/ssh_config.5
/usr/share/man/cat5/sshd_config.5
/usr/share/man/cat8/sftp-server.8
/usr/share/man/cat8/ssh-keysign.8
/usr/share/man/cat8/ssh-pkcs11-helper.8
/usr/share/man/cat8/sshd.8
Any idea what are those?
Hi, i get same errors building openssh-5.9p1 using mock + ccache on rhel 5.7
ReplyDeleteany ideas ?
This comment has been removed by the author.
ReplyDeleteAlexander, Mike, we found the solution to the errors you were having. Basically we had to add a flag to the spec file for --mandir, you can see the full write-up or download our spec file: here
ReplyDelete