1. Installation OpenSSH first have to install OpenSSL and zlib
Install OpenSSL---Download openssl-1.0.1j.tar.gz, extract the/usr/openssl/directory into the decompression directory execution./config-fpic the following figure
Install zlib---Download zlib-1.2.8.tar.gz extract to/usr/zlib/directory
Execute./configure make and make install command OK
2. Download Openssh.tar.gz Package decompression placed in the/usr/openssh/directory to extract as shown
After the execution of./configure partial compilation can be seen below the OpenSSH configuration file is placed under the/usr/local/etc Note: In general, under the/etc/ssh directory
OpenSSH has been configured with the following options:
User binaries:/usr/local/bin
System binaries:/usr/local /sbin
Configuration files:/usr/local/etc
askpass Program:/usr/local/libexec/ssh-askpass
Manual Pages: /usr/local/share/man/manx
PID file:/var/run
Privilege Separation chroot path:/var/empty
No--with-ssl-dir=/usr/local/ssl may report Configure:error:OpenSSL version header not found execute make and make install command error: Privile GE separation User sshd does not exist resolved: Add in/etc/passwd: sshd:x:74:74:privilege-separatedssh:/var/empty/sshd:/sbin/ Nologin make install compile installation successfully again.
OpenSSH by default installed in the/usr/local/sbin/directory as shown
Open SSH Service
Note To open SSH service in absolute path or error
To see if SSH started successfully
Connecting servers through Putty
Open it
Open it
Connection Landing Successful
Remote login via SSH
Error Server responded "algorithm negotiation failed" reason client and server are not compressed the same way
Workaround modify SSH configuration file generally in/etc/ssh/sshd_config but I was killed here under/usr/local/etc/sshd_config.
To add to the configuration file:
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256, ARCFOUR,BLOWFISH-CBC,CAST128-CBC
MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96, hmac-md5-96
kexalgorithms DIFFIE-HELLMAN-GROUP1-SHA1,DIFFIE-HELLMAN-GROUP14-SHA1, diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384, ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
After restarting the SSHD service, you can connect normally, as shown below.
Click Yes to enter the password
Click OK
Success
Set up SSH boot up, edit/etc/rc.local file
Putty.exe Download Address
Windows SSH client Download address
openssh-7.2p2.tar.gz Download Address
Openssh-server.deb 32-bit download address
The above is a small set to introduce the Ubuntu installation OpenSSH Server Tutorial detailed, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!