Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ OpenSSH version smooth upgrade method     - Linux use logs to troubleshoot (Linux)

- Vim highlight lookup operation (Linux)

- Use py2exe to generate exe files Python script (Programming)

- Configuring Eclipse Note Templates (Linux)

- Sublime Text 3 shortcuts summary (Linux)

- Process safety monitoring and protection under the Linux operating system (Linux)

- IPTABLES configuration steps under Linux (Linux)

- Ubuntu Series Installation Docker (Linux)

- ASM required disk format process in Solaris platforms (Linux)

- Let CentOS6 yum upgrade to support more source rpm package (Linux)

- PHP security Programming Advice (Programming)

- Computer security perimeter recommendations (Linux)

- Android Studio Personalization (Linux)

- MySQL 5.7 and 5.6 group by differences (Database)

- Java object serialization and deserialization (Programming)

- Linux kernel socket protocol stack routing lookup cache mechanism (Linux)

- Use SVN to automatically deploy code under Apache (Server)

- Spring Data JPA call a stored procedure examples (Programming)

- A key installation Gitlab 7 on RHEL6.4 and Setup Mail TX (Linux)

- Linux Quick Install MongoDB (Database)

  OpenSSH version smooth upgrade method
  Add Date : 2016-05-14      
  After because older versions of OpenSSH Remote Access execution vulnerability exists, so the installation of Linux systems need to be upgraded OpenSSH to fix this vulnerability, strengthen server security.

Note: The upgrade process should not restart sshd service, otherwise it will not connect the remote! !

Upgrade version: openssh-6.6p1

Upgrade method:

1, loading a local source (method not described)

2, execute the following command

yum install bash -y
yum install -y zlib zlib-devel openssl openssl-devel
tar -zxvf openssh-6.6p1.tar.gz -C / usr / local / src /
cd /usr/local/src/openssh-6.6p1/
cp /etc/init.d/sshd /etc/init.d/sshd.old
tar -cvf ssh.bak.tar / etc / ssh
yum install gcc -y

3, uninstall the old version

rpm -qa | grep ssh
rpm -e openssh-server-5.3p1-81.el6.x86_64
rpm -e openssh-clients-5.3p1-81.el6.x86_64 --nodeps
rpm -qa | grep ssh
rpm -e openssh-askpass-5.3p1-81.el6.x86_64
rpm -e openssh-5.3p1-81.el6.x86_64
rpm -qa | grep ssh

4, start the upgrade

./configure --prefix = / usr --sysconfdir = / etc / ssh --with-zlib --with-md5-passwords
make && make install
mv /etc/init.d/sshd.old /etc/init.d/sshd
mkdir -p / var / empty / sshd / etc
/etc/init.d/sshd restart
chkconfig --add sshd
chkconfig sshd on
chkconfig --list | grep sshd

5, to see if the upgrade is successful

ssh -V
OpenSSH_6.6p1, OpenSSL 1.0.0-fips 29 Mar 2010
- Hadoop new and old version of the difference in the size of the InputSplit (Server)
- QBit development of micro-services (Server)
- Vagrant build LNMP environment (Server)
- iscsiadm command usage (Linux)
- Installation and deployment of Hadoop 2.7.1 on Ubuntu 14.04 LTS (Server)
- How Bluetooth turned off by default in Ubuntu 14.04 (Linux)
- MySQL main and backup replication structures (using mysqld_multi) (Database)
- TL-WR703N to install OpenWrt process notes (Linux)
- JDK comes with tools jinfo (Linux)
- Access clipboard content across multiple vim instances in a terminal (Linux)
- PHP interview questions of design patterns (Programming)
- Caffe + Ubuntu 14.04 64bit + CUDA 6.5 configuration instructions (Linux)
- Offline (local) Yum source structures (Linux)
- LaTeX Getting Started Tutorial (Linux)
- Puppet 3.5 Source package Installation and Configuration (Server)
- Linux System Getting Started Tutorial: How to update outdated version of Ubuntu (Linux)
- Java proxy use and proxy principle (Programming)
- Using FTPClient to upload and download files in Java (Programming)
- CentOS 7 source code to compile and install Nginx process record (Server)
- How to implement Linux host Telnet SSH password Free (Server)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.