In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to upgrade openssh in CentOS 6.4 to 6.7. the article is very detailed and has a certain reference value. Interested friends must finish reading it!
CentOS 6.4upgrade openssh to 6.7p1
I. description of the environment
1) operating system: CentOS 6.464 bit
2) Openssl version: 1.0.1e-15.el6. Since upgrading to openssh_6.7p1 requires a version of OpenSSL above 0.9.8f, there is no need to upgrade openssl here. Just upgrade openssh directly.
3) pre-upgrade version of Openssh: openssh-5.3p1-94.el6 mitOpenssh version after upgrade: openssh_6.7p1 (source code installation)
4) connection tool xshell 4. To open a few more connections, and to prevent time-out disconnection, to prevent ssh upgrade failure and unable to connect to the machine.
Upgrade sshd to OpenSSH-6.7 and back up the old version of ssh
1) prepare before upgrade
Download openssh-6.7p1.tar.gz
Http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.7p1.tar.gz
Back up the ssh configuration file:
# mv / etc/ssh / etc/ssh.bak
Check to see if the package is missing
# rpm-qa | egrep "gcc | make | perl | pam | pam-devel | zlib | zlib-devel"
If you have configured yum, you can install these packages directly with yum, so that you can check whether they are installed or not.
Yum-y install gcc* make perl pam pam-devel zlib zlib-devel
Uninstall the old version of openssh first
# rpm-e `rpm-qa | grep openssh`
2) compile and install the new version of openssh
# tar zxf openssh-6.7p1.tar.gz & & cd openssh-6.7p1
If you need to disguise the version information displayed by ssh, modify the version.h file first:
#. / configure-prefix=/usr-sysconfdir=/etc/ssh-with-pam-with-zlib-with-md5-passwords
# make
# make install
3) check to see if you upgrade to the new version
4) copy the startup script to / etc/init.d
# cp / root/openssh-6.7p1/contrib/redhat/sshd.init / etc/init.d/sshd
Join boot self-boot
# chkconfig-add sshd
5) start sshd and use start or reload. Do not restart,restart will directly disconnect, and will not start the sshd service, at this time, you have to enter the machine through other ways, and then start the sshd service.
If the xshell4 connection is not available, modify the configuration so that xshell4 supports it by default
The above is all the contents of the article "how to upgrade openssh to 6.7 in CentOS 6.4". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.