🔐

ssh-keygen覚え書き

2023/11/08に公開

サクッとSSH鍵ペアを作る

$ ssh-keygen -t ed25519 -C ""
  • どうやら安全らしいED25519ってアルゴリズムを使った
  • デフォルトで公開鍵の末尾にユーザー名、ホスト名が入ってしまうので、オプションで空にするように指定

参考資料

https://docs.github.com/en/enterprise-cloud@latest/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
https://linuxfan.info/ssh-ed25519
https://dev.classmethod.jp/articles/ssh-keygen-tips/

Discussion