Gentoo-ssh-Agent Configuration

Source: Internet
Author: User

Currently, SSH key authentication is usually configured for services like GitHub.

Therefore, it is necessary to use SSH-agent to manage the private key.

In Gentoo, the configuration is as follows:

-Sudo emerge-AVT keychain

-Edit. bashrc and add the keychain <private key 1 path>... <private key N path>

-Edit. bashrc. After the preceding sentence, add source $ home/. keychain/$ hostname-sh.

Tools similar to ssh-add require environment variables such as ssh_auto_sock to know the ssh-agent information. The keychain has been generated for us, so we need the above sentence source, refer to man keychain

 

Keychain is an SSH-Agent wrapper. Its function is as follows:

-Ensure that only one ssh-Agent process exists.

-Automatically generate settings for environment variables such as ssh_auth_sock.

For keychain, see here: http://www.ibm.com/developerworks/cn/linux/security/openssh/part2/index.html

This articleArticleDaniel Robbinson is the founder of Gentoo and author of keychain.

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.