5
6

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鍵ファイルいろいろ

Last updated at Posted at 2015-10-25

使うソフトの都合でいろんな形式の鍵ファイルが生じて混乱することがあるのでメモ。

OpenSSH

秘密鍵

  • ~/.ssh/id_rsa
  • /etc/ssh/ssh_host_rsa_key
  • *.pem
  • 等等
-----BEGIN RSA PRIVATE KEY-----
xxxxxxxx
-----END RSA PRIVATE KEY-----

公開鍵

  • ~/.ssh/id_rsa.pub
  • /etc/ssh/ssh_host_rsa_key.pub
  • 等等
ssh-rsa xxxxxxxxxxxxxxx== comment

SECSH (ssh.com)

秘密鍵

---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
Comment: "…"
xxxxxxxx
---- END SSH2 ENCRYPTED PRIVATE KEY ----

公開鍵

---- BEGIN SSH2 PUBLIC KEY ----
Comment: "…"
xxxxxxxx
---- END SSH2 PUBLIC KEY ----

PuTTY

秘密鍵

  • *.ppk
PuTTY-User-Key-File-2: ssh-rsa
…
Public-Lines: 4
xxxxxxxx
Private-Lines: 8
xxxxxxxx
Private-MAC: xxxxxxxx

公開鍵

SECSH (ssh.com) と同じ。

5
6
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
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?