0
0

More than 1 year has passed since last update.

Githubに置いているSSH公開鍵を取得する

Last updated at Posted at 2022-04-23

Githubに置いている公開鍵を簡単に取ってこられることを友人から教えてもらったのでメモ

結論

Githubに置いている公開鍵は https://github.com/settings/keys から確認できる。
この公開鍵の一覧はhttps://github.com/ユーザ名.keysで取得することができる。

これを使えば公開鍵をSSHサーバのauthorized_keysファイルに書き込む際に、

$ (echo; curl https://github.com/ユーザ名.keys) >> ~/.ssh/authorized_keys

のようにすればscpで公開鍵を送信したりする手間が省ける。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0