Ssh-agent usage

Source: Internet
Author: User
Ssh-agent

Always do not know what is ssh-agent, tonight read a few articles, finally realized.

The general SSH process
  1. Ssh-keygen generates a public key, note that you can choose a password when you generate the private key, or you can choose no password. The place to OpenSSH cattle is to use key to log in, not to use a password.
  2. Then do a password-free landing, usually copied to. Ssh/authorized_keys, or with Ssh-copy-id.
In fact, after the second step is done basically do not lose password login. What does it take to ssh-agent and Ssh-add?

In fact, when the Ssh-keygen, you can lose the password, you can not lose the password, just that is the case of not losing the password, then if you lose the password, SSH login will prompt you to enter the password of the private key (do not need to enter the server password). And ssh-agent can avoid the trouble of repeatedly entering the private key.
The usage is simple.

  1. Ssh-agent
  2. Ssh-add the private key (this will prompt the password once, then save the password in the cache and then no longer input)
MAC also has a call keychain Access things, is the management of password software, but also through the ssh-add to achieve SSH password-free landing.

Ssh-agent usage

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.