Establish a trust relationship between the two servers

Source: Internet
Author: User
Establish a trust relationship between the two servers 1. run the ssh-keygen command on the clien machine to generate the certificate www.2cto. comssh-keygen-b1024-tdsaGeneratingpublic/privatersakeypair. enterfilein... establish a trust relationship between the two servers 1. run the ssh-keygen command on the clien machine to generate the certificate www.2cto.com ssh-keygen-B 1024-t dsaGenerating public/private rsa key pair. enter file in which to save the key (/root /. ssh/id_rsa): Enter passphrase (empty for no passphrase): <-- Enter same passphras E again: <-- press enter to enter Your identification has been saved in/root /. ssh/id_rsa.Your public key has been saved in/root /. ssh/id_rsa.pub.The key fingerprint is: 49: 9c: 8a: 8f: bc: 19: 5e: 8c: c0: 10: d3: 15: 60: a3: 32: 1c root @ Client www.2cto.com Note: When the program prompts passphrase, enter the carriage return, indicating that the certificate has no password. The above command generates the private key certificate id_rsa and public key certificate id_rsa.pub, which are stored in the. ssh subdirectory of the user's home directory. 2. copy the public key certificate id_rsa.pub to the. ssh subdirectory of the user's home directory of the Server, and change the file name to authorized_keys.
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.