{"id":94083,"date":"2024-04-22T06:38:11","date_gmt":"2024-04-21T22:38:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=94083"},"modified":"2024-04-22T06:38:11","modified_gmt":"2024-04-21T22:38:11","slug":"scp-recursion","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/scp-recursion.html","title":{"rendered":"SCP\u4f7f\u7528\u6280\u5de7-\u9012\u5f52\u6392\u9664\u6587\u4ef6"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | Q\uff1a\u6211\u9700\u8981\u5c06\u6240\u6709\u5305\u542b *.c \u6587\u4ef6\u7684\u6587\u4ef6\u5939\u4ece\u540d\u4e3a hostA \u7684\u672c\u5730\u7b14\u8bb0\u672c\u590d\u5236\u5230 hostB\u3002\u6211\u4f7f\u7528\u7684\u662f\u4e0b\u9762\u7684 scp \u547d\u4ee4\uff0c\u4f46\u4e0d\u77e5\u9053\u5982\u4f55\u6392\u9664\u7279\u5b9a\u7684\u6587\u4ef6\uff08\u5982 *.out\uff09\uff1a$ scp -r ~\/projects\/ user@hostB:\/home\/delta\/projects\/\u3002\u5982\u4f55\u544a\u8bc9 scp \u547d\u4ee4\u5728 Linux\/Unix \u547d\u4ee4\u884c\u4e2d\u6392\u9664\u7279\u5b9a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u4eba\u4eec\u53ef\u4ee5\u4f7f\u7528 scp \u547d\u4ee4\u5728\u7f51\u7edc\u4e3b\u673a\u4e4b\u95f4\u5b89\u5168\u5730\u590d\u5236\u6587\u4ef6\u3002\u5b83\u4f7f\u7528 ssh \u8fdb\u884c\u6570\u636e\u4f20\u8f93\u548c\u8eab\u4efd\u9a8c\u8bc1\u3002\u5178\u578b\u7684\u8bed\u6cd5\u662f\uff1a<\/p>\n scp file1 user@host:\/path\/to\/dest\/\r\nscp -r \/path\/to\/source\/ user@host:\/path\/to\/dest\/\r\n<\/pre>\n |