Procedure for setting ssh in linux

Source: Internet
Author: User
Ssh setup process in linux 1. install the ssh service apt-getinstallopenssh-server2. generate a public key and private key ssh-keygenwww.2cto.com3 on the client. copy the public key to the server, the server executes ,~ Is the home ~ of the target user ~ Mkdir ~ /. Ssh ~ Ch... the process of setting ssh in linux 1. install the ssh service apt-get install openssh-server 2. ssh-keygen www.2cto.com 3. copy the public key to the server and execute it on the server ,~ Is the home ~ of the target user ~ Mkdir ~ /. Ssh ~ Chown 700 ~ /. Ssh ~ Vi ~ /. Ssh/authorized_keys write a new line on authorized_keys with the public key of the client ~ Chmod 644 ~ /. Ssh/authorized_keys 4. restart the service and use the ssh target user @ client ip address.
Author zzxian

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.