Notes on manual compilation and installation of OpenSSHServer under Ubuntu9.10

Source: Internet
Author: User
An Ubuntu9.10 instance is installed on the Virtual Machine. To use Putty for remote connection, you must install openssh-server. If you can access the Internet, run the following command to install sudoapt-getinstallopenssh-server. If necessary, install openssh-client. My VM host cannot access the Internet, so it can only be manually installed. Download: zlib-1.2.5.tar, open

A Ubuntu 9.10 is installed on the Virtual Machine. To use Putty for remote connection, install openssh-server.

If you can access the Internet, run the following command to install sudo apt-get install openssh-server. If necessary, install openssh-client.

My VM host cannot access the Internet, so it can only be manually installed.

Download zlib-1.2.5.tarw.openssh-5.6p1.tar.gz?openssl-0.9.8o.tar.tar from a machine that can access the Internet, and then prepare for installation.

The procedure is as follows:
1. First decompress and install zlib: tar-xf zlib-1.2.5.tar, 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.

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

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.