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. comssh-keygen-tdsa-C & quot; email. xxx & quot;-f ~ The commands above/. ssh/xxx are in ~ /. Generate xxx key under ssh... 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
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