{"id":1797,"date":"2020-04-18T08:49:46","date_gmt":"2020-04-18T00:49:46","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=1797"},"modified":"2020-04-18T08:49:46","modified_gmt":"2020-04-18T00:49:46","slug":"osx%e5%90%91linux%e8%87%aa%e5%8a%a8%e6%8b%b7%e8%b4%9d%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=1797","title":{"rendered":"OSX\u5411Linux\u81ea\u52a8\u62f7\u8d1d\u6587\u4ef6"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\u7531\u4e8e\u51fa\u7248\u672c\u9700\u8981\uff0c\u9700\u8981\u5c06\u5728iMac\u4e0a\u9762\u751f\u6210\u7684\u6587\u4ef6\uff0c\u81ea\u52a8\u4f20\u5230Linux\u7cfb\u7edf\u4e0a\u3002\n\n\u9996\u5148\uff0c\u9700\u8981\u4f7f\u7528OSX\u4e2d\u7684scp\u547d\u4ee4\n\n\n\nscp filename root@192.168.0.123:\/tmp\/\n\n\n\n\u5c06filename\u4f20\u5230192.168.0.123\u670d\u52a1\u5668\u7684tmp\u76ee\u5f55\n\n\u7531\u4e8escp\u5728\u4f7f\u7528\u65f6\u4f1a\u8be2\u95ee\u5bc6\u7801\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981sshpass\u81ea\u52a8\u4f20\u9001\u5bc6\u7801\n\n\n\nsshpass -p \"123456\" scp filename root@192.168.0.123:\/tmp\/\n\n\n\n\u8fd9\u6837\u5728\u4e0a\u4f20\u6587\u4ef6\u65f6\u5c31\u4f1a\u81ea\u52a8\u6dfb\u52a0\u5bc6\u7801\u4e86\uff0c\u9177\u3002\n\n\n\n\u9644\uff1a\n\nsshpass\u4e0b\u8f7d\u5730\u5740\u4e3a\uff1a\n\nhttp:\/\/sourceforge.net\/projects\/sshpass\/\n\n\u4e0b\u8f7d\u4e0b\u6765\u7684\u5305\uff0c\u89e3\u5f00\u540e\uff0c\u8fdb\u5165sshpass\u76ee\u5f55\n\n.\/configure\nmake\nmake install<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1797"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1797"}],"version-history":[{"count":1,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1797\/revisions"}],"predecessor-version":[{"id":1798,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1797\/revisions\/1798"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}