<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dogwood008</author_name>
  <author_url>https://blog.hatena.ne.jp/dogwood008/</author_url>
  <blog_title>dogwood008の開発メモ！</blog_title>
  <blog_url>https://blog.dogwood008.com/</blog_url>
  <categories>
  </categories>
  <description>要旨 予め下記のように ~/.ssh/config に記入しておくと、 ssh work_server を実行するとそのまま一発で踏み台サーバを経由した先のサーバへSSHで入ることができる。 # ~/.ssh/config Host work_server User ec2-user HostName ip-xxx-xxx-xxx-xxx.ec2.internal # &lt;- Private IP Addr Port 22 ProxyCommand ssh -W %h:%p bastion_server IdentityFile /path/to/key.pem Host bastion_ser…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.dogwood008.com%2Fentry%2Fssh-via-bastion-server&quot; title=&quot;踏み台サーバ (Bastion Server)を経由したSSHを、コマンド一発で - dogwood008の開発メモ！&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>2022-05-11 23:57:51</published>
  <title>踏み台サーバ (Bastion Server)を経由したSSHを、コマンド一発で</title>
  <type>rich</type>
  <url>https://blog.dogwood008.com/entry/ssh-via-bastion-server</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
