LoginSignup
4
3

More than 5 years have passed since last update.

GithubにSSH公開鍵を設定する

Posted at

生成方法

ターミナルを開き、以下のコマンドを打ちます。

ssh-keygen

確認方法

次に、以下のコマンドを打ちます。

cat ~/.ssh/id_rsa.pub

以下のコマンドを打つと、Macのクリップボードに公開鍵をコピーしてくれるので便利です。

cat ~/.ssh/id_rsa.pub | pbcopy

設定方法

  • Githubにアクセスして、右上にあるSettings(歯車のマーク)をクリックします
  • 一覧の中にある SSH keys と書かれているところをクリックします
  • Add SHH key をクリックします
  • 適当な名前(端末名とか)をつけて、先ほどコピーした公開鍵を貼り付ければ完了です
4
3
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
4
3