If it is a Linux system (based on openssh), the public/private key is generally located at ~/.ssh 下的 id_rsa、id_rsa.pub , just copy it to the corresponding location. If you are not Linux, please refer to the manual of each client.
The specific parameter configuration is in the Gitetcsshssh_configssh_config file # IdentityFile ~/.ssh/id_rsa You can change the git default configuration, or you can create a new config file in the ~/.ssh/ directory, the content is as follows
Host gitlab.xxx.com
IdentityFile ~/.ssh/mousycoder
User mousycoder
If it is a Linux system (based on openssh), the public/private key is generally located at
~/.ssh
下的id_rsa
、id_rsa.pub
, just copy it to the corresponding location. If you are not Linux, please refer to the manual of each client.The specific parameter configuration is in the Gitetcsshssh_configssh_config file # IdentityFile ~/.ssh/id_rsa You can change the git default configuration, or you can create a new config file in the ~/.ssh/ directory, the content is as follows