Interconnect the ssh functions of two machines

Source: Internet
Author: User

The ssh function of the two machines is used to enable the ssh function of the two machines. You do not need to enter the password each time you log on to the server. for multiple servers, this is a prerequisite for www.2cto.com: ssh must be installed on the machine. For detailed installation instructions, refer to (1 ). generate the Public Key cd ~ on the local machine ~ Ssh-keygen-t dsa Note: 1. ssh-keygen is an overall command, bad case: ssh-keygen 2. enter passphrase (empty for no passphrase) as prompted. enter to skip this step. -t is the key type. Currently, dsa and rsa www.2cto.com are commonly used to publish the Local Public Key to the destination scp ~ /. Ssh/id_dsa.pub user @ target-machine :~ /. Ssh/source-machine-key: cat the public key on the target machine to authorized_keys chmod 755 ~ /. Ssh chmod 644 ~ /. Ssh/authorized_keys

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.