scp
Verified for current stable LTS
Scp Command: Copy File Between Two Remote Hosts Via Local Host
Use for copy file between two remote hosts via local host with Scp. Exact CLI syntax to copy file between two remote hosts via local host using Scp.
When to use this: Use for copy file between two remote hosts via local host with Scp.
Command Syntax
scp -3 <host1>:<path/to/remote_file> <host2>:<path/to/remote_directory> scp -3 <host1>:<path/to/remote_file> <host2>:<path/to/remote_directory> Command Breakdown
-3- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to copy file between two remote hosts via local host using Scp.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Scp Command: Copy File From Remote Host To Local Directory
scp <remote_host>:<path/to/remote_file> <path/to/local_directory> Scp Command: Copy Local File To Remote Host scp <path/to/local_file> <remote_host>:<path/to/remote_file> Scp Command: Copy Local File To Remote Host Using Specific Username scp <path/to/local_file> <remote_username>@<remote_host>:<path/to/remote_directory> Scp Command: Copy Local File Using Specific Port scp -P <port> <path/to/local_file> <remote_host>:<path/to/remote_file> Scp Command: Copy Local File Using Specific Proxy scp -J <proxy_username>@<proxy_host> <path/to/local_file> <remote_host>:<path/to/remote_file>