~/.ssh/configファイルを作成
以下のようにする
Host github.com
User git
Port 22
HostName github.com
IdentityFile ~/.ssh/my-servives
TCPKeepAlive yes
IdentitiesOnly yes
で、例えば、sshkeyをmy-servicesとすると .ssh/my-servicesにchmod 600しる
git remote設定で今見ている設定を、httpsからgitプロトコルにすると、pushとか諸々できるっぽい
git remote set-url origin git@github.com:GINK03/bing-ranking-spectre.git