Use different SSH keys to log on to multiple websites

Source: Internet
Author: User

Use different SSH keys to log on to multiple websites. create different SSH keys,-t specifies the encryption method, RSA or DSA;-C annotation;-f specifies the file name www.2cto.com ssh-keygen-t dsa-C "email. xxx "-f ~ The commands above/. ssh/xxx are in ~ /. Ssh/generate xxx key pair 2. Edit ~ /. Ssh/config file, configuration format example: Host github.com www.github.com IdentityFile ~ /. Ssh/code_githubHost bitbucket.org www.bitbucket.org IdentityFile ~ /. Ssh/code_bitbucket view man ssh_config more parameter descriptions 3. Add the content of the xxx. pub public key file to ~ /. Ssh/authorized_keys file 4. When using ssh to log on to the website, it will automatically determine which pair of key authentication is used

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.