2024-10-28 14:28:31 +00:00
|
|
|
name: "SCP Command to Transfer Files"
|
|
|
|
description: "How to Use SCP Command to Transfer Files/Folders in Linux"
|
|
|
|
author: "Bo-Yi Wu"
|
2019-09-28 02:42:13 +00:00
|
|
|
inputs:
|
|
|
|
host:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "scp remote host"
|
2019-09-28 02:42:13 +00:00
|
|
|
port:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "scp remote port"
|
|
|
|
default: "22"
|
2019-09-28 02:42:13 +00:00
|
|
|
username:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "scp username"
|
2019-09-28 02:42:13 +00:00
|
|
|
password:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "scp password"
|
2024-10-28 14:33:53 +00:00
|
|
|
protocol:
|
|
|
|
description: "The IP protocol to use. Valid values are 'tcp'. 'tcp4' or 'tcp6'. Default to tcp."
|
|
|
|
default: "tcp"
|
2019-09-28 02:42:13 +00:00
|
|
|
timeout:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "timeout for ssh to remote host"
|
2019-09-28 04:41:21 +00:00
|
|
|
default: "30s"
|
2019-09-28 02:42:13 +00:00
|
|
|
command_timeout:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "timeout for scp command"
|
2019-11-30 15:17:05 +00:00
|
|
|
default: "10m"
|
2019-09-28 02:42:13 +00:00
|
|
|
key:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "content of ssh private key. ex raw content of ~/.ssh/id_rsa"
|
2019-09-28 02:42:13 +00:00
|
|
|
key_path:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "path of ssh private key"
|
2020-01-20 15:07:25 +00:00
|
|
|
passphrase:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "ssh key passphrase"
|
2020-05-22 01:44:56 +00:00
|
|
|
fingerprint:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "fingerprint SHA256 of the host public key, default is to skip verification"
|
2020-05-24 06:24:45 +00:00
|
|
|
use_insecure_cipher:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "include more ciphers with use_insecure_cipher"
|
2019-09-28 02:42:13 +00:00
|
|
|
target:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "target path on the server, must be a directory path."
|
2019-09-28 02:42:13 +00:00
|
|
|
source:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "scp file list"
|
2019-09-28 02:42:13 +00:00
|
|
|
rm:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "remove target folder before upload data"
|
2020-05-21 15:33:05 +00:00
|
|
|
debug:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "enable debug message"
|
2019-09-28 04:26:40 +00:00
|
|
|
strip_components:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "remove the specified number of leading path elements"
|
2019-09-28 17:42:21 +00:00
|
|
|
overwrite:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "use --overwrite flag with tar"
|
2023-04-09 07:51:09 +00:00
|
|
|
tar_dereference:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "use --dereference flag with tar"
|
2019-09-28 17:42:21 +00:00
|
|
|
tar_tmp_path:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "temporary path for tar file on the dest host"
|
2023-04-09 03:57:45 +00:00
|
|
|
tar_exec:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "temporary path for tar file on the dest host"
|
|
|
|
default: "tar"
|
2020-01-20 15:08:15 +00:00
|
|
|
proxy_host:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "ssh proxy remote host"
|
2020-01-20 15:08:15 +00:00
|
|
|
proxy_port:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "ssh proxy remote port"
|
|
|
|
default: "22"
|
2020-01-20 15:08:15 +00:00
|
|
|
proxy_username:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "ssh proxy username"
|
2020-01-20 15:08:15 +00:00
|
|
|
proxy_password:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "ssh proxy password"
|
2020-01-20 15:08:15 +00:00
|
|
|
proxy_passphrase:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "ssh proxy key passphrase"
|
2020-01-20 15:08:15 +00:00
|
|
|
proxy_timeout:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "timeout for ssh to proxy host"
|
2020-01-20 15:08:15 +00:00
|
|
|
default: "30s"
|
|
|
|
proxy_key:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "content of ssh proxy private key. ex raw content of ~/.ssh/id_rsa"
|
2020-01-20 15:08:15 +00:00
|
|
|
proxy_key_path:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "path of ssh proxy private key"
|
2020-05-22 01:44:56 +00:00
|
|
|
proxy_fingerprint:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "fingerprint SHA256 of the host public key, default is to skip verification"
|
2020-05-24 06:24:45 +00:00
|
|
|
proxy_use_insecure_cipher:
|
2024-10-28 14:28:31 +00:00
|
|
|
description: "include more ciphers with use_insecure_cipher"
|
2019-09-28 02:42:13 +00:00
|
|
|
runs:
|
2024-10-28 14:28:31 +00:00
|
|
|
using: "docker"
|
|
|
|
image: "Dockerfile"
|
2019-09-28 02:42:13 +00:00
|
|
|
|
|
|
|
branding:
|
2024-10-28 14:28:31 +00:00
|
|
|
icon: "copy"
|
|
|
|
color: "gray-dark"
|