Install openssh under linuxas4u2-Linux Enterprise Application-Linux server application information. The following is a detailed description. I. Preparations
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
-- 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
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.
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.