LoginSignup
0
0

More than 5 years have passed since last update.

秘密鍵から公開鍵を作成する

Posted at

秘密鍵だけしか見つからなかった時以下で公開鍵を取得できます。
これで標準出力に出力されます。

$ /usr/bin/ssh-keygen -y -f <秘密鍵のパス>

[-y] This option will read a private OpenSSH format file and print an OpenSSH public key to stdout.

※以下、全く関係ないメモです
今日、ファイルをtarでまとめている時に利用している
オプションの意味を考えてしまいました。
まとめるとき:-zcvf
内容見るとき:-ztvf
展開するとき:-zxvf
z] --gzip filter the archive through gzip
c] --create create a new archive
v] --verbose verbosely list files processed
f] --file use archive file or device ARCHIVE
t] --list list the contents of an archive
x] --extract, --get extract files from an archive

0
0
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
0
0