Scp Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian
Maintainer: Debian OpenSSH Maintainers
Email: [email protected] .
Website: https://www.openssh.com/
Section: net
Install scp
-
Debian
apt-get install openssh-clientClick to copy -
Ubuntu
apt-get install openssh-clientClick to copy -
Alpine OS
apk add openssh-clientClick to copy -
Arch Linux
pacman -S scpClick to copy -
Kali Linux
apt-get install openssh-clientClick to copy -
CentOS
yum install openssh-clientsClick to copy -
Fedora
dnf install openssh-clientsClick to copy -
Raspbian
apt-get install openssh-clientClick to copy
Secure copy. Copy files between hosts using Secure Copy Protocol over SSH.
How to use scp?
Below are few example commands for scp that you can use in the terminal.
Copy a local file to a remote host:scp path/to/local_file remote_host:path/to/remote_fileClick to copyCopy a file from a remote host to a local folder:scp remote_host:path/to/remote_file path/to/local_dirClick to copyRecursively copy the contents of a directory from a remote host to a local directory:scp -r remote_host:path/to/remote_dir path/to/local_dirClick to copyCopy a file between two remote hosts transferring through the local host:scp -3 host1:path/to/remote_file host2:path/to/remote_dirClick to copyUse a specific username when connecting to the remote host:scp path/to/local_file [email protected]_host:path/to/remote_dirClick to copyUse a specific ssh private key for authentication with the remote host:scp -i ~/.ssh/private_key local_file remote_host:/path/remote_fileClick to copy
Installation of latest scp command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.




