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

More than 5 years have passed since last update.

puttygen で秘密鍵からOpenSSHの公開鍵作成

0
Posted at

puttygen で秘密鍵からOpenSSHの公開鍵作成する時にいーーっつもハマるので、自分用まとめ

上記の原因は結局、authorized_keysの中に記述していた公開鍵に誤りがあっただけの話でした。puttygenで秘密鍵から公開鍵を作成するときに、File > Save Public Key で作成してから、その内容をauthorized_keysに記述してしまっていて、それが原因でOpenSSHが鍵を認識できなかったということでした。

上記の通り、公開鍵を作成するときは、UI上に表示されている公開鍵をコピペしてauthorized_keysに記述することで認識してくれるようになりました。(もちろんパーミッションの設定もしています)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?