Linux Remote Login

Source: Internet
Author: User

1. The remote machine root account (can also be a custom account ABC). Enter the. ssh/authorized_keys file. No, create a new file of the same directory under the user.

2. Append the contents of the%userprofile%/.ssh/id_rsa.pub file of the local lander (SSH-RSA) into the _keys file above

3. Change file permissions chmod. SSH && chmod 644. Ssh/authorized_keys

4. configuration file Changes:
Vi/etc/ssh/sshd_config will open Permitrootlogin yes. (If the first step is not root can be ignored). Turn pubkeyauthentication Yes on

5. Restart the sshd service.

Systemctl Restart sshd

6. Remote machine login username is the user in the first step. (Root or ABC)

Key%userprofile%/.ssh/id_rsa: Private key

Principle: The public key on the remote machine is paired with the local private key after the successful login

Linux Remote Login

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.