キーを作るのは過去に書いたんだけど、 permission denied で却下されるわ、 github のドキュメントは -vT でデバッグしろだの書いており「なんか違う」という風情なので以下にメモしておく。
鍵を作る
権限を変更する
❯ chmod 700 .ssh/ ❯ cd .ssh ❯ chmod 600 config
config に設定を書く
Host github.com HostName github.com IdentityFile ~/.ssh/example.pem User git
テストする
❯ ssh -T git@github.com Hi example/example! You've successfully authenticated, but GitHub does not provide shell access.