Use of SSH private key management ssh-agent

Source: Internet
Author: User
SSH private key management ssh-agent use my company uses git to manage and deploy source code, so you need to bring your private key from the development machine to the machine [plain] ssh-Axxx@192.168.0.xxx, but found to jump to the machine after gitfetch, prompt and did not find the development... SSH private key management ssh-agent use my company uses git to manage and deploy source code, so you need to bring your private key from the development machine to the machine [plain] ssh-A xxx@192.168.0.xxx, but found to jump to the machine after the git fetch, the prompt does not find the development machine on the private key, the private key is not included. After several days of searching, it is found that the developer needs to start ssh-agent [plain] ssh-agent bash -- login-I ssh-add to encrypt and cache his private key, the ssh internal mechanism can safely bring the cached private key to the target machine during the communication process [ssh-agent introduction] ssh-agent is a proxy for managing private keys, the managed private key is added through ssh-add, so clients of the ssh-agent can share these private keys. Benefit 1: You do not need to enter the password again. When you use ssh-add to add a private key, if the private key has a password, you are required to enter the password once in the example. after that, the ssh-agent can directly use the private key, no password authentication is required. Benefit 2: You do not need to deploy the private key everywhere. assume that the private key can log on to host A and host B on the same intranet respectively. for some reason, you cannot directly log on to host B. You can either deploy the private key on A or set PortForwarding to log on to B, or forward the authentication proxy connection to A and use the ssh-agent private key to log on to B.
Related Article

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.