Use ssh-keygen to set ssh password-less Login

Source: Internet
Author: User
Tags ssh access


Using ssh-keygen to set ssh password-less ssh logon is a protocol designed for security of remote logon sessions and other network services. By default, ssh connections require password authentication. You can add system authentication (Public Key-Private Key) modifications. After modification, inter-system switching can avoid password input and ssh authentication. The following describes the creation process. Www.2cto.com enter ssh-keygen-t rsa-C "you@email.com" with ssh-keygen to create the public key. ssh/idrsa, idrsa. pub files, where the first is the key and the second is the public key. The password is required during the process. For ssh access, you can press enter directly. View the key: www.2cto.com ls ~ /. Ssh/copy the public key to the managed machine above scp id_rsa.pub root@192.168.36.194 :~ /. Ssh/authorized_keys access ssh 192.168.36.194. This is because after the first access, ssh will save the authenticated host information in. ssh/known_hosts for further access. You can log on through ssh without a password. Ssh 192.168.36.194
 

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.