Install openssh under linuxas4u2

Source: Internet
Author: User
Tags install openssl openssl version
Install openssh under linuxas4u2-Linux Enterprise Application-Linux server application information. The following is a detailed description. I. Preparations

1. Installation Package (preferably available)
Glibc-kernheaders-2.4-9.1.87.i386.rpm
Glibc-headers-2.3.4-2.i386.rpm
Glibc-devel-2.3.4-2.i386.rpm
Gcc-3.4.3-9.EL4
Gd-2.0.28-4.i386.rpm
Gd-devel-2.0.28-4.i386.rpm
Pam-devel-0.77-65.1
Pam-0.77-65.1
E2fsprogs-devel-1.35-11.6.EL4.i386.rpm
Krbafs-devel-1.2.2-6.i386.rpm
Openssl-devel-0.9.7a-43.1.i386.rpm
Zlib-1.2.1.2-1
Zlib-devel-1.2.1.2-1
Openssl-0.9.8d.tar.gz
Openssh-4.5p1.tar.gz

2. Check the openssh version.
Because as4u2 is installed with openssl and openssh by default

Check openssl version
# Openssl version
OpenSSL 0.9.7a Feb 19 2003

Check the ssh Version
# Ssh-V
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003.

Ii. Install openssl

Uninstall the old opensll Library
# Rpm-e -- nodeps openssl

Unpack
# Tar xzvf openssl-0.9.8d.tar.gz

Enter the openssl directory to install openssl, and use -- prefix to specify the openssl installation directory.
# Cd openssl-0.9.8d
#./Config -- prefix =/usr/local/openssl-0.9.8

Modify mandir content
# Vi Makefile
Makefile =/usr/share/man

Compile
# Make
# Make test
# Make install

Test
#/Usr/local/openssl-0.9.8/bin/openssl version
OpenSSL 0.9.8d 28 Sep 2006

3. install OpenSSH

# Tar xzvf openssh-4.5p1.tar.gz

# Cd openssh-4.5p1

#. /Configure -- prefix =/usr -- sysconfdir =/etc/ssh -- with-pam -- with-zlib -- with-ssl-dir =/usr/local/openssl-0.9.8-with-md5-passwords -- mandir = /usr/share/man -- without-zlib-version-check

-- Prefix =/usr // specify the installation directory
-- Sysconfdir =/etc/ssh // System Configuration directory
-- With-pam
-- With-zlib // If zlib is compiled and installed by yourself, add the -- with-zlib = DIR parameter. If zlib is installed by default, replace it with -- with-zlib. Other parameters are the same.
-- Without-zlib-version-check // use zlib of earlier versions, and do not check zlib version (zlib 1.2.3 is recommended)
-- With-ssl-dir =/usr/include/openssl // ssl directory
With-md5-passwords
-- Mandir =/usr/share/man

Compile
# Make
# Make install

Test
# Su-
# Ssh-V
OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006

Updated successfully. Restart the service.
# Service sshd restart

Now, you can use the SSH client to connect to the host.

Note: sftp-server is in/usr/libexec/openssh/sftp-server by default. After the update, modify it in/etc/ssh/sshd_config.
# Subsystem sftp/usr/libexec/sftp-server
Otherwise, sftp cannot be started.

Note: If you want to enable the TELNET port remotely, in case the SSH upgrade fails and you cannot contact the host.
Related Article

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.