SSHキーの生成
test@test-PC MINGW32 ~
$ ssh-keygen -t rsa -C "xxxx@yahoo.co.jp"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/test/.ssh/id_rsa):
Created directory '/c/Users/test/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Passphrases do not match. Try again.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/test/.ssh/id_rsa.
Your public key has been saved in /c/Users/test/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx@yahoo.co.jp
The key's randomart image is:
+---[RSA 2048]----+
| ..==OEo |
| *.+BX. |
| . +=O=+. |
|. o o+o. . |
|. o S |
|.o o . + . |
|..++ . + . |
| oo.o . o |
| .o... |
+----[SHA256]-----+
$ ssh-keygen -t rsa -C "xxxx@yahoo.co.jp"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/test/.ssh/id_rsa):
Created directory '/c/Users/test/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Passphrases do not match. Try again.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/test/.ssh/id_rsa.
Your public key has been saved in /c/Users/test/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxx@yahoo.co.jp
The key's randomart image is:
+---[RSA 2048]----+
| ..==OEo |
| *.+BX. |
| . +=O=+. |
|. o o+o. . |
|. o S |
|.o o . + . |
|..++ . + . |
| oo.o . o |
| .o... |
+----[SHA256]-----+
GitHubの登録を行った後 [Start a project]でプロジェクトを作成
Repository name は適当に「test」とした
プロジェクト画面が開いたら、画面右上の自分のユーザアイコンをクリックし[Settings]を選択
左側メニューから「SSH and GPG keys」を選択
[New SSH key]をクリック
Titleには任意の名前を入力
Keyには、Git Bashで以下コマンドを入力した結果を張り付ける
test@test-PC MINGW32 ~
$ cat ~/.ssh/id_rsa.pub
$ cat ~/.ssh/id_rsa.pub
0 件のコメント:
コメントを投稿