Technology Sharing

Generate multiple ssh to access different git

2024-07-11

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

If your git code repository, such as Tencent Cloud Coding, is accessed through an SSH key and has been working well, one day you add an Aliyun Cloud Effect code repository, configure the Aliyun Cloud Effect key, and upload the SSH public key according to the official documentation of Aliyun Cloud Effect, and it can work normally.

Then, you return to the Tencent Cloud Coding project for code hosting and find that:
insert image description here
In this case, the problem you encounter can most likely be solved by following the steps below:

Check the local key

First you need to check the local key. Generally, if you are using Windows operating system, the key file is in:

C:Usersyourusername.ssh