In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to upgrade the shell script of openssl and openssh, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
#! / bin/bash
# turn off SELinux
Sed-I's pick up for each other in order to etc/selinux/config
Setenforce 0
# install associated applications
Yum install-y gcc gcc-c++ glibc make autoconf openssl openssl-devel pcre-devel pam-devel
# back openssl
Mv / usr/bin/openssl / usr/bin/openssl_bak & & mv / usr/include/openssl / usr/include/openssl_bak
# install openssl
Tar xf openssl-*.tar.* & & cd openssl-*
. / config shared & & make & & make install
Ln-s / usr/local/ssl/bin/openssl / usr/bin/openssl & & ln-s / usr/local/ssl/include/openssl / usr/include/openssl
Echo "/ usr/local/ssl/lib" > > / etc/ld.so.conf
/ sbin/ldconfig
Cd..
# install openssh
Tar xf openssh-*.tar.* & & cd openssh-*
Rm-rf / etc/ssh/*
. / configure-prefix=/usr/-sysconfdir=/etc/ssh-with-openssl-includes=/usr/local/ssl/include-with-ssl-dir=/usr/local/ssl\
-with-zlib-with-md5-passwords-with-pam & & make & & make install
Sed-I 's/#PermitRootLogin.*/PermitRootLogin yes/' / etc/ssh/sshd_config & & sed-I' s/#UserPAM no/User PAM no/' / etc/ssh/sshd_config
Cp-a contrib/redhat/sshd.init / etc/init.d/sshd & & cp-a contrib/redhat/sshd.pam / etc/pam.d/sshd.pam
Chmod + x / etc/init.d/sshd & & chkconfig-- add sshd
Systemctl enable sshd
Mv / usr/lib/systemd/system/sshd.service / root/
Num= `awk-NF.'{print $1}'/ etc/redhat-release | awk-F''{print $NF}'`
If [$num-ge 6]; then
/ etc/init.d/sshd restart
Eles
Systemctl daemon-reload & & systemctl restart sshd
Fi
Ssh-V & & cd. & & rm-rf. / openss*
This is the answer to the question about how to upgrade the shell script of openssl and openssh. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.