1
2

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 5 years have passed since last update.

ssh-keygenの主なオプション

1
Posted at

ssh-keygen(鍵作成)の主なオプションは以下

-1 鍵ファイルをSSH1からSSH2の形式に変換する
-t 鍵タイプ指定する(rsa/dsa)
-i 鍵ファイルの情報を表示
-l 公開鍵の情報(種別、指紋、コメントなど)確認
-C 鍵のコメント新規作成
-b 鍵の長さ指定(最低値は768bit、初期値は2048bit)
-p 秘密鍵のパスフレーズ変更
-c 鍵のコメント指定
-f ファイル指定

e.g)以下のコマンドを実行すると、

$ssh-keygen -t rsa -b 2048 -f hoge_file_name

/home/[user名]/.sshディレクトリに
・鍵タイプrsa
・鍵の長さ2048
・秘密鍵:hoge_file_name,公開鍵:hoge_file_name.pubという名前で
鍵が作られる。

1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?