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