{"width":"100%","author_url":"https://blog.hatena.ne.jp/dogwood008/","type":"rich","image_url":null,"categories":[],"version":"1.0","provider_url":"https://hatena.blog","title":"\u8e0f\u307f\u53f0\u30b5\u30fc\u30d0 (Bastion Server)\u3092\u7d4c\u7531\u3057\u305fSSH\u3092\u3001\u30b3\u30de\u30f3\u30c9\u4e00\u767a\u3067","description":"\u8981\u65e8 \u4e88\u3081\u4e0b\u8a18\u306e\u3088\u3046\u306b ~/.ssh/config \u306b\u8a18\u5165\u3057\u3066\u304a\u304f\u3068\u3001 ssh work_server \u3092\u5b9f\u884c\u3059\u308b\u3068\u305d\u306e\u307e\u307e\u4e00\u767a\u3067\u8e0f\u307f\u53f0\u30b5\u30fc\u30d0\u3092\u7d4c\u7531\u3057\u305f\u5148\u306e\u30b5\u30fc\u30d0\u3078SSH\u3067\u5165\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 # ~/.ssh/config Host work_server User ec2-user HostName ip-xxx-xxx-xxx-xxx.ec2.internal # <- Private IP Addr Port 22 ProxyCommand ssh -W %h:%p bastion_server IdentityFile /path/to/key.pem Host bastion_ser\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.dogwood008.com%2Fentry%2Fssh-via-bastion-server\" title=\"\u8e0f\u307f\u53f0\u30b5\u30fc\u30d0 (Bastion Server)\u3092\u7d4c\u7531\u3057\u305fSSH\u3092\u3001\u30b3\u30de\u30f3\u30c9\u4e00\u767a\u3067 - dogwood008\u306e\u958b\u767a\u30e1\u30e2\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","blog_title":"dogwood008\u306e\u958b\u767a\u30e1\u30e2\uff01","author_name":"dogwood008","provider_name":"Hatena Blog","published":"2022-05-11 23:57:51","blog_url":"https://blog.dogwood008.com/","url":"https://blog.dogwood008.com/entry/ssh-via-bastion-server"}