SSH Configuration Remote Host Trust

Source: Internet
Author: User
1. Execute the ssh-keygen command under a machine root and generate a certificate that establishes the Security trust relationship, where it is required to enter, direct return.

# Ssh-keygen-  T  RSA

2. View the file where the ~/.ssh generated the key

# CD ~/.SSH
# LL

3. Edit Config file

 

Save exit after entering the following configuration

Host stys
Hostname 192.165.8.74
Port 4052

4. After entering the following command

Cat ~/.ssh/*.pub | SSH root@stys ' umask 077; Cat >>.ssh/authorized_keys '
Display lets you enter the remote host password, root@192.165.8.74 ' s password:. Do not enter the password when you enter the remote host

Related Article

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.