Files

494 lines
12 KiB
JSON

{
"_format": "scaffold_schema",
"_coverage": "partial: [--help skipped (meta flag)]",
"tool": "scp",
"binary": "scp",
"description": "OpenSSH secure file copy. Copies files between hosts on a network over an encrypted SSH connection.",
"elevated": null,
"subcommands": null,
"arguments": [
{
"name": "Port",
"flag": "-P",
"short_flag": null,
"type": "integer",
"description": "Port to connect to on the remote host. Note: uppercase -P unlike ssh's lowercase -p.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": 1,
"max": 65535,
"deprecated": null,
"dangerous": false
},
{
"name": "Identity File",
"flag": "-i",
"short_flag": null,
"type": "file",
"description": "Identity file (private key) for public key authentication.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": true,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"~/.ssh/id_rsa",
"~/.ssh/id_ed25519"
],
"display_group": "Authentication",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Cipher",
"flag": "-c",
"short_flag": null,
"type": "string",
"description": "Cipher to use for encrypting the data transfer.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"aes256-gcm@openssh.com",
"chacha20-poly1305@openssh.com"
],
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Config File",
"flag": "-F",
"short_flag": null,
"type": "file",
"description": "Specifies an alternative per-user ssh configuration file.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSH Option",
"flag": "-o",
"short_flag": null,
"type": "string",
"description": "SSH option in KEY=VALUE format. Can be repeated.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": true,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"StrictHostKeyChecking=no",
"UserKnownHostsFile=/dev/null",
"ConnectTimeout=10"
],
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Jump Host",
"flag": "-J",
"short_flag": null,
"type": "string",
"description": "Connect via jump host (ProxyJump). Comma-separated for multiple hops.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"user@bastion.example.com"
],
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Recursive",
"flag": "-r",
"short_flag": null,
"type": "boolean",
"description": "Recursively copy entire directories.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Transfer",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Preserve",
"flag": "-p",
"short_flag": null,
"type": "boolean",
"description": "Preserve modification times, access times, and modes from the original file.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Transfer",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Compression",
"flag": "-C",
"short_flag": null,
"type": "boolean",
"description": "Enable compression during transfer.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Transfer",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Bandwidth Limit",
"flag": "-l",
"short_flag": null,
"type": "integer",
"description": "Limit bandwidth in Kbit/s.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Transfer",
"min": 1,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SFTP Protocol",
"flag": "-s",
"short_flag": null,
"type": "boolean",
"description": "Use the SFTP protocol for transfers instead of the legacy SCP protocol. Default in newer OpenSSH.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Transfer",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Quiet",
"flag": "-q",
"short_flag": null,
"type": "boolean",
"description": "Quiet mode. Disables the progress meter and warning/diagnostic messages.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Output",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Verbose",
"flag": "-v",
"short_flag": null,
"type": "boolean",
"description": "Verbose mode. Print debugging messages.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Output",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "IPv4 Only",
"flag": "-4",
"short_flag": null,
"type": "boolean",
"description": "Forces scp to use IPv4 addresses only.",
"required": false,
"default": null,
"choices": null,
"group": "ip_version",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "IPv6 Only",
"flag": "-6",
"short_flag": null,
"type": "boolean",
"description": "Forces scp to use IPv6 addresses only.",
"required": false,
"default": null,
"choices": null,
"group": "ip_version",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Batch Mode",
"flag": "-B",
"short_flag": null,
"type": "boolean",
"description": "Batch mode. Prevents asking for passwords or passphrases.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Transfer",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Use Legacy Protocol",
"flag": "-O",
"short_flag": null,
"type": "boolean",
"description": "Use the legacy SCP protocol for transfers instead of SFTP.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Transfer",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSH Program",
"flag": "-S",
"short_flag": null,
"type": "string",
"description": "Name of program to use for the encrypted connection. The program must understand ssh options.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Disable Strict Filename",
"flag": "-T",
"short_flag": null,
"type": "boolean",
"description": "Disable strict filename checking. By default scp checks received filenames match request.",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Transfer",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Source",
"flag": "SOURCE",
"short_flag": null,
"type": "string",
"description": "Source file(s). Remote format: [user@]host:path",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"file.txt",
"user@remote:/path/to/file",
"*.log",
"/local/dir/"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Target",
"flag": "TARGET",
"short_flag": null,
"type": "string",
"description": "Destination. Remote format: [user@]host:path",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"user@remote:/path/to/dest",
"./local_dir/",
"user@host:~/backup/"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
}