{"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","published":"2021-03-14 10:03:57","width":"100%","url":"https://ryuichi1208.hateblo.jp/entry/2021/03/14/100357","blog_title":"\u5730\u65b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u7fd2\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/ryuichi1208/","categories":["Linux"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2021%2F03%2F14%2F100357\" title=\"\u3010Linux\u3011\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5916\u90e8\u3078\u516c\u958b\u3057\u3066\u307f\u308b - \u5730\u65b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u7fd2\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u3010Linux\u3011\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5916\u90e8\u3078\u516c\u958b\u3057\u3066\u307f\u308b","author_name":"ryuichi1208","blog_url":"https://ryuichi1208.hateblo.jp/","type":"rich","image_url":null,"description":"ssh\u306e\u30ea\u30e2\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u3067\u8d77\u52d5\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u3092\u5916\u90e8\u304b\u3089\u30d5\u30a9\u30fc\u30ef\u30fc\u30c9\u3059\u308b # \u4ee5\u4e0b\u3092\u4fee\u6b63 $ vi /etc/ssh/sshd_config GatewayPorts yes # \u518d\u8d77\u52d5 $ systemctl restart sshd \u4ee5\u4e0b\u306e\u3088\u3046\u306bssh\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u3067192.168.1.1:8433\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u5168\u3066localhost:443\u3078\u7e4b\u304c\u308b\u3002\u5b09\u3057\u3044\u30b1\u30fc\u30b9\u3068\u3057\u3066\u306flocalhost\u304c\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u5b88\u3089\u308c\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3067\u4ed6\u30e6\u30fc\u30b6\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u3082\u3089\u3044\u305f\u3044\u30b1\u30fc\u30b9\u3002 $ ssh -R 8443:localhost:443 192.168.1.1 $ ss -antu \u2026","version":"1.0","height":"190"}