Centos6.5 openssh upgrade

  1. First mount the CentOS6.5 image

mkdir/mnt/cdrom

mount/dev/cdrom /mnt/cdrom

  1. Modify the repo file

Vi/etc/yum.repos.d/yum.repo

[ local]

Name=local

Baseurl=file:///mnt/cdrom/Server

Enabled=1

Gpgcheck=0

  1. Yum clean all

Yum install gcc*

  1. Uninstall the openssh that comes with the system, stop the sshd service before uninstalling, and then delete it with rpm, and clear the system /etc/ssh directory at the same time

[ root@CentOS tmp]# service sshd stop

Stopping sshd:                                            [  OK  ]

[ root@CentOS tmp]# rpm -qa openssh

openssh-5.3p1-94.el6.x86_64

[ root@CentOS tmp]# rpm -e --nodeps openssh-server

[ root@CentOS tmp]# rpm -e --nodeps openssh-clients

[ root@CentOS tmp]# rpm -e --nodeps openssh-askpass

[ root@CentOS tmp]# rpm -e--nodeps openssh

[ root@CentOS tmp]# rm -rf /etc/ssh

Reboot! ! !

  1. Upload zlib, install zlib

[ root@CentOS tmp]# tar -xvf zlib-1.2.8.tar.gz

[ root@CentOS tmp]# cd zlib-1.2.8

[ root@CentOS zlib-1.2.8]# ./configure --prefix=/usr/local/zlib &&make && make install

  1. Upload the openssl file, unzip it, and open the console under the folder

. /config --prefix=/usr/local/openssl && make && make install

  1. Upload the openssh file, unzip,

. /configure--prefix=/usr/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/openssl--with-zlib=/usr/local/zlib --with-md5-passwords --without-hardening &&make && make install

  1. Modify the configuration file

[ [email protected]]# cp contrib/redhat/sshd.init /etc/init.d/sshd

[ [email protected]]# chmod +x /etc/init.d/sshd generally comes with x permissions

No need to modify files

[ [email protected]]#rpm -qa openssh

openssh-5.3p1-122.el6.x86_64

  1. Add to system service

[ [email protected]]# chkconfig --add sshd

[ [email protected]]# service sshd start

  1. Check version

ssh -V pay attention to capital

OpenSSH_6.6p1, OpenSSL 1.0.1e-fips 11 Feb 2013

Recommended Posts

Centos6.5 openssh upgrade
CentOS7 upgrade python3
Upgrade OpenSSL and OpenSSH under CentOS7
Centos7 upgrade kernel
ubuntu14.04.1 upgrade openssh
centos6.9 rabbitmq 3.6.8 upgrade 3.8.2
CentOS7.5-1804 system kernel upgrade
Centos 6.4 python 2.6 upgrade to 2.7
CentOS6.5 upgrade kernel to 3.10.28
Centos kernel version upgrade
Centos default python2.6 upgrade to
CentOS upgrade python2 to pyth
CentOS 8 (2)
CentOS 8 (1)
centos6.5: gcc upgrade (5.2.0) process record
How to upgrade CentOS7 to CentOS8 (detailed steps)
Three methods of Centos kernel upgrade
Centos7 upgrade git version control tool
Linux: Centos7 upgrade the original kernel
Centos6.7 comes with python upgrade to
Remember a centos 7 kernel upgrade accident
Manually upgrade node version under CentOs
Manually upgrade node version under CentOs
centos7 python3.7+vi
CentOS + Python3.6+
CentOS + Jenkins
Centos python3 compile installation and compile gcc upgrade
1.5 Install Centos7
2019-07-09 CentOS7 installation
centos7_1708 installation
Centos 7.5 python3.6
How to install openssh from centos 7 source code