2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AL2023でssh用キーペア生成

Last updated at Posted at 2023-05-01

通常のコマンドで鍵を作るとOpenSSHのバージョン違いで秘密鍵がヘンなカタチに。

-----BEGIN OPENSSH PRIVATE KEY-----
文字列文字列文字列文字列
-----END OPENSSH PRIVATE KEY-----

-mオプションでフォーマットを指定することで解決。

ssh-keygen -t rsa -m PEM

おわり。

2025/01/21追記

最近はrsaより強固な方式がよいですね

ssh-keygen -t ed25519 -m pem

おわり。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?