- 追加された行はこの色です。
- 削除された行はこの色です。
* ssh-keygen [#g670a32a]
** 作成 [#y84c59c5]
ssh-keygen -t rsa
*** ファイル名を指定 [#z2beef7d]
ssh-keygen -t rsa -f ~/.ssh/foo
=> ~/.ssh/foo と ~/.ssh/foo.pubができる
*** コメントを指定 [#u0c9425e]
ssh-keygen -t rsa -C this-is-my-key
** 鍵のフィンガープリントの確認 [#f412de90]
ssh-keygen -l -f ~/.ssh/id_rsa
-l Show fingerprint of specified public key file. Private RSA1 keys are also supported. For RSA and DSA keys ssh-keygen
tries to find the matching public key file and prints its fingerprint. If combined with -v, an ASCII art representa-
tion of the key is supplied with the fingerprint.
*** 暗号化 2010年問題 [#p03cd0bc]
- RSA 1024ビットは避ける。2048ビットにする。
- ssh-keygen -t rsa で作成される鍵は2048ビット。
- https://www.ssl.ph/compare/useful/2010/
** 参考 [#ca7567ba]
http://serverfault.com/search?q=ssh+keygen+rsa