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 a public key on the local machine... 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
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