【さっくり版】秘密鍵&公開鍵のつくりかた

パスフレーズなしで作成

$ssh-keygen -t rsa -b 2048 -N ""
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/hoge/.ssh/id_rsa):ここはリターン
Your identification has been saved in /c/Users/hoge/.ssh/id_rsa.
Your public key has been saved in /c/Users/hoge/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:ZiuTPCTiDhJOsu5pj7Gq4LfRnT5aCRH6oKY0JJExoFo hoge@PC22
The key's randomart image is:
+---[RSA 2048]----+
|*o . |
|oo . . |
|o.Eo . |
|+.. o . |
|+*. .o. S |
|B+...+o+o. |
|*o.. .*=. |
|=+=.. o= |
|BB+o..... |
+----[SHA256]-----+

/c/Users/hoge/.ssh/id_rsa. これが公開鍵
/c/Users/hoge/.ssh/id_rsa.pub. こっちが秘密鍵

Last update: 2017.12.26 (火)