From 3e72760a45eec44a9ed0148a37aff2fcebd27528 Mon Sep 17 00:00:00 2001 From: xidui <664984593@qq.com> Date: Fri, 25 Dec 2015 16:25:01 +0800 Subject: [PATCH] scp with ssh key --- pages/common/scp.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/scp.md b/pages/common/scp.md index 9a6d82c915..73fe907ed6 100644 --- a/pages/common/scp.md +++ b/pages/common/scp.md @@ -30,3 +30,7 @@ - copy a file from one host to another `scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{20.0.0.2}}:{{/other/remote/path}}` + +- download a file with ssh key + +`scp -i {{/local/key}} {{10.0.0.1}}:{{/remote/path/file.txt}} {{/local/folder}}`