Skip to content
masterclass Buddy

Linux & Shell · Command

scp

scp copies files between local and remote hosts over SSH. It uses SFTP by default and accepts local paths, remote host paths, or scp URIs.

Last updated

Since
OpenSSH 9.0

Syntax

scp [ -346ABCOpqRrsTv ] [ -c cipher ] [ -D sftp_server_path ] [ -F ssh_config ] [ -i identity_file ] [ -J destination ] [ -l limit ] [ -o ssh_option ] [ -P port ] [ -S program ] [ -X sftp_option ] source ... target

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • sftp(1)
  • ssh(1)
  • ssh-add(1)
  • ssh-agent(1)
  • ssh-keygen(1)
  • ssh_config(5)
  • sftp-server(8)
  • sshd(8)

Source: scp(1) - Linux manual page. Checked 2026-11-03.