{"id":1713,"date":"2023-03-26T07:25:17","date_gmt":"2023-03-25T23:25:17","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1713"},"modified":"2023-04-23T21:38:51","modified_gmt":"2023-04-23T13:38:51","slug":"scp-transfers-files-through-proxy","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/26\/scp-transfers-files-through-proxy\/","title":{"rendered":"scp\u901a\u8fc7\u4ee3\u7406proxy\u4ee3\u7406\u4f20\u8f93\u6587\u4ef6"},"content":{"rendered":"<pre><code># \u5176\u4e2d\n# proxy_ip\u5bf9\u5e94\u7684\u4ee3\u7406\u670d\u52a1\u5668\u7684ip, proxy_port\u5bf9\u5e94\u7684\u4ee3\u7406\u670d\u52a1\u5668\u7684port\n# filename\u5bf9\u5e94\u60f3\u8981\u4f20\u8f93\u7684\u6587\u4ef6\n# username\u5bf9\u5e94\u76ee\u6807\u4e3b\u673a\u7684\u7528\u6237\u540d, target_ip\u5bf9\u5e94\u76ee\u6807\u4e3b\u673a\u7684ip,target_path\u5bf9\u5e94\u60f3\u8981\u4f20\u8f93\u7684\u76ee\u6807\u5730\u5740\nscp -o &quot;ProxyCommand=ncat --proxy-type http --proxy proxy_ip:proxy_host %h %p&quot; filename username@target_ip:\/target_path\n\nscp -o ProxyCommand=&quot;ncat --proxy-type http --proxy 172.16.0.8:8118 %h %p&quot; test.txt yezhou@118.220.150.88:\/home\/yezhou<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p># \u5176\u4e2d # proxy_ip\u5bf9\u5e94\u7684\u4ee3\u7406\u670d\u52a1\u5668\u7684ip, proxy_port\u5bf9\u5e94\u7684\u4ee3\u7406\u670d\u52a1\u5668\u7684port # f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[429,142],"class_list":["post-1713","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-scp","tag-142"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1713"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1713\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}