{"id":208,"date":"2013-10-28T15:40:15","date_gmt":"2013-10-28T06:40:15","guid":{"rendered":"http:\/\/blog.ymyzk.com\/?p=208"},"modified":"2014-12-03T09:57:09","modified_gmt":"2014-12-03T00:57:09","slug":"ssh-over-socks-https","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2013\/10\/ssh-over-socks-https\/","title":{"rendered":"SOCK\/HTTPS\u30d7\u30ed\u30ad\u30b7\u7d4c\u7531\u3067SSH\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"

\u4f01\u696d\u3084\u5927\u5b66\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u5916\u90e8\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u76f4\u63a5SSH\u63a5\u7d9a\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059. \u3053\u3046\u3044\u3063\u305f\u74b0\u5883\u3067SSH\u63a5\u7d9a\u3092\u884c\u3046\u65b9\u6cd5\u306e\u4e00\u3064\u306b, \u30d7\u30ed\u30ad\u30b7\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059.<\/p>\n

SOCKS v.5\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc: proxy.example.com:1080 \u63a5\u7d9a\u5148\u30b5\u30fc\u30d0\u30fc: server.example.com \u3067\u63a5\u7d9a\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u306b\u306a\u308a\u307e\u3059.<\/p>\n

<\/p>\n

\r\nssh -o ProxyCommand='nc -x proxy.example.com:1080 %h %p' server.example.com\r\n<\/pre>\n

\u4f55\u5ea6\u3082\u5229\u7528\u3059\u308b\u5834\u5408\u306f ~\/.ssh\/config \u306b\u8a2d\u5b9a\u3092\u66f8\u3044\u3066\u304a\u304f\u3068\u4fbf\u5229\u3067\u3059.<\/p>\n

\r\nHost server.example.com-socks\r\n    Hostname        server.example.com\r\n    ProxyCommand    nc -x proxy.example.com:1080 %h %p\r\n<\/pre>\n

-X \u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u306f\u30d7\u30ed\u30ad\u30b7\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d, SOCKS v.5\u306e\u5834\u5408\u306f5, SOCKS v.4\u306e\u5834\u5408\u306f4, HTTPS\u306e\u5834\u5408\u306fconnect\u3092\u6307\u5b9a\u3057\u307e\u3059. \u30c7\u30d5\u30a9\u30eb\u30c8\u306fSOCKS5<\/strong>\u3067\u3059.
\n-x \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u306f\u30d7\u30ed\u30ad\u30b7\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059. SOCKS\u30d7\u30ed\u30ad\u30b7\u306e\u5834\u5408\u306f\u30dd\u30fc\u30c81080, HTTPS\u30d7\u30ed\u30ad\u30b7\u306e\u5834\u5408\u306f\u30dd\u30fc\u30c83128\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306b\u306a\u3063\u3066\u304a\u308a, \u305d\u306e\u30dd\u30fc\u30c8\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u30dd\u30fc\u30c8\u756a\u53f7\u306f\u7701\u7565\u53ef\u80fd\u3067\u3059.<\/p>\n

\u30c6\u30b9\u30c8\u74b0\u5883: OS X 10.9 Mavericks<\/p>\n

\u53c2\u8003: nc(1) Mac OS X Manual Page (https:\/\/developer.apple.com\/library\/mac\/documentation\/Darwin\/Reference\/ManPages\/man1\/nc.1.html)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

\u4f01\u696d\u3084\u5927\u5b66\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u5916\u90e8\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u76f4\u63a5SSH\u63a5\u7d9a\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059. \u3053\u3046\u3044\u3063\u305f\u74b0\u5883\u3067SSH\u63a5\u7d9a\u3092\u884c\u3046\u65b9\u6cd5\u306e\u4e00\u3064\u306b, \u30d7\u30ed\u30ad\u30b7\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059. SOCKS v.5\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc: […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[28],"_links":{"self":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/208"}],"collection":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":4,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":653,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/208\/revisions\/653"}],"wp:attachment":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}