1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

githubのssh設定

Last updated at Posted at 2021-04-17

#鍵生成

$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/github -N "pass" -C "sample@mail"

オプションについて
-t 暗号化形式を指定するrsa,dsa,ecdsa,ed25519
-b作成する鍵のビット数を指定
-fファイルを指定する
-N新しく設定するパスフレーズを指定
-Cコメントを指定
公開鍵設定
~/.ssh/configに以下を設定

Host github.com
    IdentityFile ~/.ssh/github
    User git

cloneやり方

短縮じゃないやつ
$ git clone ssh://git@github.com/pugsatoshi/start

短縮の場合
$ git clone git@github.com:pugsatoshi/start
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?