Установка OpenSSH на Red Hat Enterprise Linux 5 64-bit


install gcc

install openssl-devel
rpm -ihv ./Workstation/e2fsprogs-devel-1.39-23.el5.x86_64.rpm
rpm -ihv ./Workstation/keyutils-libs-devel-1.2-1.el5.x86_64.rpm
rpm -ihv./Workstation/ libsepol-devel-1.15.2-3.el5.x86_64.rpm
rpm -ihv ./Workstation/libselinux-devel-1.33.4-5.5.el5.x86_64.rpm
rpm -ihv ./Workstation/krb5-devel-1.6.1-36.el5_4.1.x86_64.rpm
rpm -ihv ./Workstation/zlib-devel-1.2.3-3.x86_64.rpm
rpm -ihv ./Workstation/openssl-devel-0.9.8e-12.el5_4.6.x86_64.rpm

install pam-devel
rpm -ihv ./Workstation/pam-devel-0.99.6.2-6.el5_4.1.x86_64.rpm

install rpm-build
rpm -ihv ./Client/elfutils-libs-0.137-3.el5.x86_64.rpm
rpm -ihv ./Client/elfutils-libelf-0.137-3.el5.x86_64.rpm
rpm -ihv ./Workstation/elfutils-0.137-3.el5.x86_64.rpm
rpm -ihv ./Workstation/rpm-build-4.4.2.3-18.el5.x86_64.rpm

# wget ftp://mirror.planetunix.net/pub/OpenBSD/OpenSSH/portable/openssh-5.2p1.tar.gz

# 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

# rpm -Uvh openssh*rpm

# service sshd restart