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