Use ssh-kengen to skip password input and directly log on to the remote host.
Source: Internet
Author: User
Log on to the remote host directly through ssh-kengen without entering the password. 1. log on to machine A www.2cto. com2, ssh-keygen-t [rsa | dsa], the key file and private key file id_rsa, id_rsa.pub or id_dsa, id_dsa.pub3 will be generated. copy pub files to machine B...
Log on to the remote host directly through ssh-kengen without entering the password. 1. log on to host A www.2cto.com. 2. log on to ssh-keygen-t [rsa | dsa]. the key file and private key file id_rsa, id_rsa.pub or id_dsa, id_dsa.pub 3. copy the pub file to. ssh directory, and cat id_dsa.pub >> ~ /. Ssh/authorized_keys 4. success 4. log on to the target account of Machine B from Machine A without the password. (run # ssh B _ip directly)
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