Manual pages › General commands (1)
scp(1)
copy files over SSH
Package: dropbear, added for amigaux.
NAME
scp - copy files over SSH
SYNOPSIS
scp [ -prqv ] [ -P port ] [ -i keyfile ] [ -l limit ] [ -S program ] source ... target
DESCRIPTION
scp copies files between hosts. A remote file is written [user@]host:path; a path without a host is a local file. The connection is made by dbclient(1), which asks for a password or uses a key as it always does, and the remote host runs scp too.
- -p
- Keep the files' times and modes.
- -r
- Copy directories and what they hold.
- -q
- Show no progress.
- -v
- Have dbclient say what it does.
- -P port
- The remote port.
- -i keyfile
- The key to log in with (see dbclient(1)).
- -l limit
- Use at most limit Kbit/s, a whole number.
- -S program
- Connect with program instead of /opt/amix/bin/dbclient.
- -o option
- An option for dbclient, as its -o takes.
EXAMPLES
$ scp notes.txt user@server:/tmp $ scp -r user@server:src .
SEE ALSO
NOTES
This is the original scp protocol. From another system with OpenSSH 9.0 or later, whose scp uses SFTP unless told otherwise, copy to and from this system with scp -O. File times are kept to the second.
| 1 November 2026 | dropbear 2026.94 |