SCP

Goauld client file transfer (SCP, rsync, rclone)

Use tealc scp, tealc rsync, or tealc rclone when the agent is online and the corresponding local tool is installed. All three use the agent’s SSH data connection; they do not require an inbound connection to the target.

Quick usage: SCP

Transfer files from the client to the agent

tealc scp /PATH/TO/SOURCE/FILE [AGENT_NAME]:/PATH/TO/TARGET/FILE

Transfer files from the agent to the client

tealc scp [AGENT_NAME]:/PATH/TO/TARGET/FILE /PATH/TO/SOURCE/FILE

rsync

tealc rsync -a ./local-directory [AGENT_NAME]:/remote/directory

To copy in the other direction:

tealc rsync -a [AGENT_NAME]:/remote/directory ./local-directory

rclone

rclone can be used to mount a folder from the agent to the local machine.

tealc rclone [AGENT_NAME]:/remote/path /local/path

Like rsync, rclone accepts additional arguments appended after the paths, passed straight through to the underlying rclone command:

tealc rclone [AGENT_NAME]:/remote/path /local/path --vfs-cache-mode writes

Common flags

scp, rsync and rclone all support:

  • --log: record the session to a log file
  • --[no-]print: print the generated command instead of running it

scp additionally supports:

  • -o/--ssh-opts: extra options passed to the underlying SSH command
  • -F/--ssh-config-file: path to an SSH configuration file, passed straight through to the underlying scp process (scp -F ...).