* ssh-keygen [#g670a32a]

** 作成 [#y84c59c5]

 ssh-keygen -t rsa

*** ファイル名を指定 [#z2beef7d]
 ssh-keygen -t rsa -f ~/.ssh/foo.pem
 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

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS