Macで複数のSSH秘密鍵を利用する

設定ファイルの作成

$ touch ~/.ssh/config  

ファイルの内容例


Host github github.com
  HostName github.com
  IdentityFile ~/.ssh/id_ed25519
  User git
 
 Host gitlab.com
  HostName gitlab.com
  IdentityFile ~/.ssh/id_rsa
  User git
  

コメント

このブログの人気の投稿