AR ホームベーカリー

オイラのアウトプット用ホームベーカリー!

github のデプロイキーの設定

キーを作るのは過去に書いたんだけど、 permission denied で却下されるわ、 github のドキュメントは -vTデバッグしろだの書いており「なんか違う」という風情なので以下にメモしておく。

鍵を作る

donbulinux.hatenablog.jp

権限を変更する

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.

参考

qiita.com