Create a config file in the.ssh folder:

Configure github.com

Host github.com

HostName github.com

IdentityFile C:\Users\i042416\.ssh\id_rsa

PreferredAuthentications publickey

User i042416

Configure the company github

Host github.diablo.corp

HostName github.diablo.corp

IdentityFile C:\Users\i042416\.ssh\id_sap_rsa

PreferredAuthentications publickey

For more Jerry’s original articles, please follow the public account “Wang Zixi “: