<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanonji</author_name>
  <author_url>https://blog.hatena.ne.jp/kanonji/</author_url>
  <blog_title>kanonji’s diary</blog_title>
  <blog_url>https://kanonji.hatenadiary.com/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>公開鍵を authorized_keys に追加したから消しちゃってたんだけど、予定外にもう1箇所繋ぎたくなったので、秘密鍵から公開鍵を生成しました。たまにやるんだけど、毎回忘れてるのでメモ。 $ ssh-keygen -y -f ~/.ssh/id_rsa &gt; id_rsa.pub 公開鍵は標準出力に出るのでリダイレクトでファイルを生成。 -fオプションってよく使う秘密・公開鍵の生成では、出力ファイル名の指定だけど、-yオプションを使う場合は、公開鍵の元になる秘密鍵の指定です。 -yオプションがOpenSSH形式の秘密鍵からOpenSSH形式の公開鍵を標準出力に表示するものになってます。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanonji.hatenadiary.com%2Fentry%2F20110514%2F1305378873&quot; title=&quot;ssh-keygenで秘密鍵から公開鍵を生成する - kanonji’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-05-14 22:14:33</published>
  <title>ssh-keygenで秘密鍵から公開鍵を生成する</title>
  <type>rich</type>
  <url>https://kanonji.hatenadiary.com/entry/20110514/1305378873</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
