源码升级SUSE openssh
check old openssl
rpm -q openssl
openssl version
which openssl
whereis openssl
ls /etc/ssl
backup old openssl
mkdir /home/ssl_bak
mv /usr/bin/openssl /home/ssl_bak
mv /etc/ssl /home/ssl_bak/etc_ssl
mv /usr/include/openssl /home/ssl_bak/include_openssl
install
1)zlib
cd /usr/local/class="lazy" data-src
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make
make install
ll /usr/local/openssl
ls /usr/local/openssl/{bin,include,lib}
2)openssl
cd /usr/local/class="lazy" data-src
tar -zvxf openssl-1.0.2m.tar.gz
cd openssl
./config --prefix=/usr/local/openssl --openssldir=/etc/ssl shared
make
make install
ll /usr/local/openssl/{bin,include,lib}
ll /etc/ssl/
configure & upgrade opensll
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
vi /etc/ld.so.conf
/usr/local/lib64
/opt/kde3/lib64
--add the following line
/usr/local/openssl/lib
:wq
ldconfig
/usr/bin/openssl version -a
uninstall old openssh
service sshd stop
rpm -qa|grep openssh
rpm -e openssh --nodeps
upgrade openssh
cd /usr/local/class="lazy" data-src
tar -zxvf openssh-7.6p1.tar.gz
cd openssh
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-openssl --with-md5-passwords --mandir=/usr/share/man --with-zlib --with-ssl-engine --with-ssl-dir=/usr/local/openssl
make
make install
ssh -V
setting up sshd service autostart
cd /usr/local/openssh/contrib
cp suse/rc.sshd /etc/init.d/sshd
chmod 755 /etc/init.d/sshd
chkconfig --add sshd
chkconfig sshd on
vi /etc/ssh/sshd_config
--add/modify the following line
PermitRootLogin yes
--uncomment the following line
PasswordAuthentication yes
:wq
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341