Skip to content

xops scp

Command usage and available options are listed below. Check --help for options supported by your installed version.

text
Transfer files between local and remote hosts with parallel multi-host support.

Usage examples (OpenSSH-compatible):
  xops scp -i ~/.ssh/id_rsa local_path user@host:remote_path
  xops scp local_path user@host:remote_path
  xops scp user@host:remote_path local_path
  xops scp user1@host1:path1 user2@host2:path2

Batch transfer (xops enhanced):
  xops scp local_path --dest remote_path --host host1,host2
  xops scp local_path --dest remote_path --tag web

Connection Target Semantics:
  Explicit user/port in remote paths participate fully in matching, automatically reuse existing Host records, and strictly isolate Identity credentials.
  When using --tag, other host specification methods are ignored.

Usage:
  xops scp [[user@]host:]source [[user@]host:]dest [flags]

Flags:
      --alias string        Connection alias
      --dest string         Destination path (batch mode)
      --exclude strings     Exclude specified hosts (supports Node ID / alias / IP / User@Host, comma separated or specified multiple times)
  -f, --force               Force overwrite existing files
  -h, --help                help for scp
      --host string         Target hosts, comma separated
  -i, --identity string     SSH identity (private key) file path
  -I, --ifile string        Host list file path
  -J, --jump string         Jump host address, supports Node/Alias, FQDN, IP, or [user@]host[:port]
  -l, --login string        SSH login username
  -n, --no-clobber          Do not overwrite existing files (no-clobber)
      --passphrase string   SSH private key passphrase
      --passphrase-stdin    Read passphrase securely from stdin to avoid exposure in command arguments
      --password string     SSH password
      --password-stdin      Read password securely from stdin to avoid exposure in command arguments
  -p, --port uint16         SSH port
  -v, --progress            Show transfer progress
  -r, --recursive           Copy directories recursively
      --remember string     Credential persistence policy: ask, always, never; inherits credential.remember_prompted, then ask; batch mode never saves
      --src string          Source path (batch mode)
      --tag string          Transfer by group (tag)
      --task int            Number of parallel host transfers (default 3)
      --thread int          Concurrent threads per file transfer (default 4)

Global Flags:
      --color string       ANSI color output (auto=detect pipe/redirect, never=disable, always=force enable)
      --debug              Enable debug mode (equivalent to --log-level=debug)
      --lang string        Interface language (zh/en)
      --log-level string   Set internal diagnostic log level (debug, info, warn, error)

MIT License