copy

Transfer files and directories over SSH using scp or sftp.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill copy-theslashdojo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: copy
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/ssh/copy
Command: npx skills add https://github.com/theslashdojo/dojo --skill copy-theslashdojo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openssh-client, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Move files and directories securely and reliably between local and remote hosts without interactive shells, reducing error-prone ad-hoc commands and manual copying workflows.

Core Features & Use Cases

  • Secure uploads of build artifacts and deployments to remote servers.
  • Downloading logs, database dumps, and backups reliably.
  • Recursive directory transfers with optional preservation of timestamps and modes.
  • Deterministic batch transfers using sftp -b for repeatable automation.
  • Support for bastions/ProxyJump, key-based authentication, and multiplexing for unattended jobs.

Quick Start

Use the copy skill to upload the local build directory to [email protected]:/srv/releases with scp while preserving timestamps and using a bastion if required.

Frequently Asked Questions about copy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate file transfers over SSH without an interactive shell?

Automate file transfers over SSH by running scp or sftp in batch mode. This Skill uses sftp -b for deterministic, repeatable jobs and key-based authentication to move data reliably without manual prompts.

Can I use scp through a bastion host or ProxyJump to upload build artifacts?

Yes, scp supports bastion hosts and ProxyJump for routing file transfers. You can upload build artifacts through intermediate jump servers using key-based authentication to reach targets behind restricted networks.

What is the best way to recursively copy directories over SSH while preserving timestamps and file modes?

The best way to recursively copy directories over SSH is using scp with preservation flags. This Skill transfers entire directory trees while maintaining original timestamps and file modes for deployment workflows.

How do I run batch sftp jobs to download logs or database backups reliably?

Run batch sftp jobs using sftp -b to download logs or database backups deterministically. This approach reads commands from a batch file, enabling unattended automation for recurring data retrieval tasks.

Does this SSH file transfer approach require openssh-client to handle key-based authentication?

Yes, this SSH file transfer approach requires openssh-client as a dependency. It leverages openssh-client functionality to manage key-based authentication and establish secure connections for scp and sftp transfers.

What are the limitations of using scp versus sftp for unattended deployment workflows?

Using scp limits you to basic file copying, whereas sftp enables complex batch operations. For unattended deployment workflows requiring repeatable automation, sftp -b provides better control over directory synchronization and file operations.