Ubuntu14.04LTS openssh-server manual installation and configuration steps, ubuntuopensshserver

Source: Internet
Author: User
Tags install openssl openssl version

Ubuntu14.04LTS openssh-server manual installation and configuration steps, ubuntuopensshserver

Download zlib-1.2.5.tar.bz21_openssh-5.6p1.tar.gz?openssl-0.9.8o.tar.tar on a machine that can access the internet. Then, prepare for installation.

The procedure is as follows:

1. First decompress and install zlib: tar-xf zlib-1.2.5.tar.bz2, the zlib directory is generated under the current directory. Go to the zlib directory, and then./configure and make install. If there is no error prompt, the installation is successful.

2. Install openssl. The steps are the same as above. After the installation is complete, run openssl version-a to check whether openssl is correctly installed.

The following error may be reported during installation: POD document had syntax errors at/usr/bin/pod2man line 71.

Solution: Open the configuration file "/usr/bin/pod2man" and comment out the 71st rows for compilation. # comment

3. install openssh-server. The steps are the same as above. In the last step, the following error occurs: Privilege separation user sshd does not exist solution: Add: sshd: x: 74: 74: Privilege-separated SSH to/etc/passwd: /var/empty/sshd:/sbin/nologin make install again.

4. Start ssh. Ssh is installed in the/usr/local/sbin/directory by default. Use/usr/local/sbin/sshd to start the ssh service, which listens on port 22 by default.

5. Check whether the ssh service is enabled:

netstat -tnlp|grep :22

 

Finally, after ubuntu is restarted, sshd will not be started by default.

Sudo vi/etc/rc. local

Add a row before exit 0:

/Usr/local/sbin/sshd

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.