LoginSignup
30
22

More than 5 years have passed since last update.

ssh-keygenでファイル名を指定して鍵を生成する

Posted at
$ ssh-keygen -t rsa -f file_name

ファイル名指定無しで生成した物と別途に生成したい時は-f file_nameで生成される鍵ファイル名を指定できる。カレントディレクトリに生成されるのでcd ~/.ssh/しておくこと。

$ ssh-keygen -t rsa -f id_rsa_hoge
$ ls
config  id_rsa  id_rsa.pub  id_rsa_hoge  id_rsa_hoge.pub  known_hosts
30
22
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
30
22