CentOS 6.5 system upgrade openssh7.4, centosopenssh7.4
Upgrade openssh7.4 to Linux
Environment: CentOS 6.5
Http://zlib.net/zlib-1.2.8.tar.gz
Prepare the installation package
Unzipping: zlib-1.2.8.tar.gz
[Root @ dbaul01 openssh] # tar-xvf zlib-1.2.8.tar.gz
[Root @ dbaul01 openssh] # cd zlib-1.2.8
[Root @ dbaul01 zlib-1.2.8] #./configure
[Root @ dbaul01 zlib-1.2.8] # make
[Root @ dbaul01 zlib-1.2.8] # make install
[Root @ dbaul01 zlib-1.2.8] # ll/usr/local/lib
View the current openssl version
[Root @ dbaul01 openssh] # openssl version
Decompress openssl 1.1
[Root @ dbaul01 openssh] # tar-xvf openssl-1.1.0c.tar.gz
[Root @ dbaul01 openssh] # cd openssl-1.1.0c
[Root @ dbaul01 openssl-1.1.0c] #
[Root @ dbaul01 openssl-1.1.0c] #./config
[Root @ dbaul01 openssl-1.1.0c] # make
[Root @ dbaul01 openssl-1.1.0c] # make install
[Root @ dbaul01 openssl-1.1.0c] # mv/usr/bin/openssl/usr/bin/openssl2016122121
[Root @ dbaul01 openssl-1.1.0c] #./config shared zlib
[Root @ dbaul01 openssl-1.1.0c] # make
[Root @ dbaul01 openssl-1.1.0c] # mv/usr/bin/openssl. bak
[Root @ dbaul01 openssl-1.1.0c] # ln/usr/local/bin/openssl/usr/bin/openssl
[Root @ dbaul01 openssl-1.1.0c] # openssl versiona-
Openssl: error while loading shared libraries: libssl. so.1.1: cannot open shared object file: No such file or directory
[Root @ dbaul01 openssl-1.1.0c] #
[Root @ dbaul01 openssl-1.1.0c] # ln-s/usr/local/lib/libssl. so.1.1/usr/lib64/libssl. so.1.1
[Root @ dbaul01 openssl-1.1.0c] # ln-s/usr/local/lib/libcrypto. so.1.1/usr/lib64/libcrypto. so.1.1
[Root @ dbaul01 openssl-1.1.0c] # openssl version
OpenSSL 1.1.0c 10 Nov 2016
[Root @ dbaul01 openssl-1.1.0c] #
[Root @ bogon openssh] # tar-xvf openssl-fips-2.0.12.tar.gz
[Root @ bogon openssl-fips-2.0.12] #./config
[Root @ bogon openssl-fips-2.0.12] # make
[Root @ bobon openssl-fips-2.0.12] # make install
[Root @ bogon openssl-1.0.2i] #./config
[Root @ bogon openssl-1.0.2i] # make
[Root @ bobon openssl-1.0.2i] # make install
[Root @ bogon openssl-1.0.2i] # cd/usr/local/ssl/
[Root @ bogon ssl] # cd bin/
[Root @ bogon bin] # ln-s/usr/local/ssl/bin/openssl/usr/bin/openssl
[Root @ bogon bin] # openssl version-
OpenSSL 1.0.2i 22 Sep 2016
Official steps:
Http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssh.html
[Root @ dbaul01 openssh-7.4p1] #./configure -- prefix =/usr \
-- Sysconfdir =/etc/ssh \
With-md5-passwords \
-- With-privsep-path =/var/lib/sshd
[Root @ dbaul01 openssh-7.4p1] #./configure \
-- Prefix =/usr \
-- Sysconfdir =/etc/ssh \
With-md5-passwords \
-- With-pam \
-- With-tcp-wrappers \
-- With-ssl-dir =/usr/local/ssl \
-- Without-hardening
Configure: error: PAMheaders not found
[Root @ dbaul01 openssh-7.4p1] #
[Root @ dbaul01 openssh] # yum installpam-devel.x86_64-y
Recompile
[Root @ dbaul01 openssh-7.4p1] #. /configure -- prefix =/usr -- sysconfdir =/etc/ssh-with-md5-passwords -- with-pam -- with-tcp-wrappers -- with-ssl-dir =/usr/local/ssl -- without-hardening
[Root @ dbaul01 openssh-7.4p1] # make
[Root @ dbaul01 openssh-7.4p1] # make install
[Root @ localhost redhat] # pwd
/Root/openssh/openssh-7.4p1/contrib/redhat
[Root @ localhost redhat] # cp sshd. init/etc/init. d/ss
Sshd sssd
[Root @ localhost redhat] # cp sshd. init/etc/init. d/sshd
Cp: overwrite'/etc/init. d/sshd '? Ch ^ H ^ C
[Root @ localhost redhat] # cp sshd. init/e ^ C/init. d/sshd
[Root @ localhost redhat] # mv/etc/init. d/sshd/etc/init. d/sshd20161222
[Root @ localhost redhat] # cp sshd. init/etc/init. d/sshd
[Root @ localhost redhat] # chmod u + x/etc/init. d/sshd
[Root @ localhost redhat] # chkconfig -- addsshd
[Root @ localhost openssh-7.4p1] # cpssh_config/etc/ssh/ssh_config
Cp: overwrite '/etc/ssh/ssh_config '? Y
[Root @ localhost openssh-7.4p1] # cp-psshd_config/etc/ssh/sshd_config
Cp: overwrite '/etc/ssh/sshd_config '? Y
[Root @ localhost openssh-7.4p1] #
[Root @ localhost openssh-7.4p1] # ssh-V
OpenSSH_7.4p1, OpenSSL 1.0.2i 22 Sep 2016
[Root @ localhost openssh-7.4p1] #
Root @ UL03 openssh-7.4p1] #. /configure -- prefix =/usr -- sysconfdir =/etc/ssh-with-md5-passwords -- with-pam -- with-tcp-wrappers -- with-ssl-dir =/usr/local/ssl -- without-hardening
Configure: error: PAM headers not found