Ubuntu Installation OpenSSH Server Tutorial detailed _linux

Source: Internet
Author: User
Tags hmac install openssl md5 openssl openssl version ssh openssh server windows ssh client

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!

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.