Linux Upgrade OpenSSH

Source: Internet
Author: User

Many Linux users have recently failed to use OpenSSH, the solution is very simple, that is, install OpenSSH new version of Linux. So how does the Linux system upgrade OpenSSH?

650) this.width=650; How to upgrade OpenSSH under "alt=" Linux system? "Src=" http://www.xitongzhijia.net/uploads/allimg/150827/64-150RG44946153.jpg "style=" Font-family:inherit; font-style:inherit;font-weight:inherit;vertical-align:middle;border:0px;margin:0px Auto;width:500px;height : 271px; "/>

  Note: Do not restart the SSHD service during the upgrade process, otherwise it will not connect remotely!!

The upgrade version is: OPENSSH-6.6P1

Upgrade Method:

1. Load 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. See if the upgrade was successful

Ssh-v

OPENSSH_6.6P1, OpenSSL 1.0.0-fips 2010

The above is the Linux system how to upgrade the introduction of OpenSSH, the upgrade succeeded in the old version of some problems and failures will naturally be repaired.


Linux Upgrade OpenSSH

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.