1 SCP(1) BSD General Commands Manual SCP(1)
4 scp - secure copy (remote file copy program)
7 scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
8 [-l limit] [-o ssh_option] [-P port] [-S program]
9 [[user@]host1:]file1 [...] [[user@]host2:]file2
12 scp copies files between hosts on a network. It uses ssh(1) for data
13 transfer, and uses the same authentication and provides the same security
14 as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if
15 they are needed for authentication.
17 Any file name may contain a host and user specification to indicate that
18 the file is to be copied to/from that host. Copies between two remote
21 The options are as follows:
23 -1 Forces scp to use protocol 1.
25 -2 Forces scp to use protocol 2.
27 -4 Forces scp to use IPv4 addresses only.
29 -6 Forces scp to use IPv6 addresses only.
31 -B Selects batch mode (prevents asking for passwords or
34 -C Compression enable. Passes the -C flag to ssh(1) to enable com-
38 Selects the cipher to use for encrypting the data transfer. This
39 option is directly passed to ssh(1).
42 Specifies an alternative per-user configuration file for ssh.
43 This option is directly passed to ssh(1).
46 Selects the file from which the identity (private key) for RSA
47 authentication is read. This option is directly passed to
51 Limits the used bandwidth, specified in Kbit/s.
54 Can be used to pass options to ssh in the format used in
55 ssh_config(5). This is useful for specifying options for which
56 there is no separate scp command-line flag. For full details of
57 the options listed below, and their possible values, see
63 ChallengeResponseAuthentication
75 GSSAPIDelegateCredentials
78 HostbasedAuthentication
87 NoHostAuthenticationForLocalhost
88 NumberOfPasswordPrompts
89 PasswordAuthentication
91 PreferredAuthentications
96 RhostsRSAAuthentication
102 StrictHostKeyChecking
110 Specifies the port to connect to on the remote host. Note that
111 this option is written with a capital 'P', because -p is already
112 reserved for preserving the times and modes of the file in
115 -p Preserves modification times, access times, and modes from the
118 -q Disables the progress meter.
120 -r Recursively copy entire directories.
123 Name of program to use for the encrypted connection. The program
124 must understand ssh(1) options.
126 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
127 about their progress. This is helpful in debugging connection,
128 authentication, and configuration problems.
130 The scp utility exits 0 on success, and >0 if an error occurs.
133 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
134 ssh_config(5), sshd(8)
137 scp is based on the rcp(1) program in BSD source code from the Regents of
138 the University of California.
141 Timo Rinne <tri@iki.fi>
142 Tatu Ylonen <ylo@cs.hut.fi>
144 BSD September 25, 1999 BSD