自分用メモ
tonosama$ ssh-keygen -t rsa -b 4096 -C "xxxxxxx@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (~/.ssh/id_rsa): ~/.ssh/id_rsa_github
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ~/.ssh/id_rsa_github.
Your public key has been saved in ~/.ssh/id_rsa_github.pub.
The key fingerprint is:
SHA256:peqSA1OHSh4FfRL1mdqBt9ux2X98tkwyfNxTPeoRgDE xxxxxxx@gmail.com
The key's randomart image is:
tonosama$
<参照>
【メモ】githubの複数アカウントにSSH接続するための設定手順
~/.ssh/config
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa_github
User git
TCPKeepAlive yes
IdentitiesOnly yes
sshでgithubに接続できるか確認する
ssh -T github.com
ssh -T Hostで接続できます