From be8aecad2d75df544b06b5746450abd9cfca717a Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Tue, 24 Nov 2020 14:13:21 +0800 Subject: [PATCH] =?UTF-8?q?SCP=20=E4=B8=80=E6=AC=A1=E4=BC=A0=E8=BE=93?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E6=96=87=E4=BB=B6.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Software/Applications/SSH/Linux_SSH_服务的安装和使用.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Software/Applications/SSH/Linux_SSH_服务的安装和使用.md b/Software/Applications/SSH/Linux_SSH_服务的安装和使用.md index 3c7b950..d18cfff 100644 --- a/Software/Applications/SSH/Linux_SSH_服务的安装和使用.md +++ b/Software/Applications/SSH/Linux_SSH_服务的安装和使用.md @@ -161,6 +161,15 @@ SCP 下载 scp @: ``` +SCP 一次传输多个文件 + +```bash +scp @:/\{file1,file2\} . +# 还可以使用正则表达式,如: +scp @:/* . +scp @:/*.txt . +``` + ## 免密访问 ssh 登陆或 scp 的时候每次都输入密码很麻烦,如果用于访问 SSH 服务器的客户端值得信任的话可以授权该主机用户免密登陆。做法是先在客户端生成密钥对,如果已有密钥对可跳过本步骤: