Forrest logo
tool overview
On this page you find all important commands for the CLI tool scp. If the command you are looking for is missing please ask our AI.

scp

Secure copy protocol (SCP) is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol. "SCP" commonly refers to both the Secure Copy Protocol and the program itself.

List of commands for scp:

  • scp:copy:local-to-remote Copy a local file to a remote host.
    $ scp ${path/to/local_file} ${remote_host}:${path/to/remote_file}
    try on your machine
    explain this command
  • scp:copy:remote-to-file Copy a file between two remote hosts transferring through the local host.
    $ scp -3 ${host1}:${path/to/remote_file} ${host2}:${path/to/remote_directory}
    try on your machine
    explain this command
  • scp:tldr:16187 scp: Recursively copy the contents of a directory from a remote host to a local directory.
    $ scp -r ${remote_host}:${path-to-remote_directory} ${path-to-local_directory}
    try on your machine
    explain this command
  • scp:tldr:a2a8e scp: Use a specific port when connecting to the remote host.
    $ scp -P ${port} ${path-to-local_file} ${remote_host}:${path-to-remote_file}
    try on your machine
    explain this command
tool overview