github認証

git
# 鍵を作る $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/Users/yugeta/.ssh/id_rsa): github Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in github. Your public key has been saved in github.pub. The key fingerprint is: SHA256:BR22szc+oIZ0OCWeEQTqR5H4REs/fab/K5soumpsHTA yugeta@MacBook-Air-de-yugetakouji.local The key's randomart image is: +---[RSA 3072]----+ | o=+o ..o. | | .oo+ o o.. | | .oo = o * | | .E... B = o | | .o. * S o o | | ... + o + . | | . . .. o . o | | + . .. ..o . | | o..oo .. ooo. | +----[SHA256]-----+ # macでのconfig登録 vi ~/.ssh/config ``` Host github.com User git Port 22 HostName github.com IdentityFile ~/.ssh/github TCPKeepAlive yes PreferredAuthentications publickey IdentitiesOnly yes ``` # githubでの鍵登録 Github鍵登録でid_rsaファイル名を変更する場合の設定の話 https://furudate.hatenablog.com/entry/2013/12/16/190317