Annotation of src/usr.bin/ssh/scp.1, Revision 1.74
1.1 deraadt 1: .\"
2: .\" scp.1
3: .\"
4: .\" Author: Tatu Ylonen <ylo@cs.hut.fi>
5: .\"
6: .\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
7: .\" All rights reserved
8: .\"
9: .\" Created: Sun May 7 00:14:37 1995 ylo
10: .\"
1.74 ! naddy 11: .\" $OpenBSD: scp.1,v 1.73 2017/05/02 13:44:51 jmc Exp $
1.1 deraadt 12: .\"
1.74 ! naddy 13: .Dd $Mdocdate: May 2 2017 $
1.3 aaron 14: .Dt SCP 1
15: .Os
16: .Sh NAME
17: .Nm scp
18: .Nd secure copy (remote file copy program)
19: .Sh SYNOPSIS
20: .Nm scp
1.27 jmc 21: .Bk -words
1.72 djm 22: .Op Fl 346BCpqrv
1.29 jmc 23: .Op Fl c Ar cipher
1.19 stevesk 24: .Op Fl F Ar ssh_config
1.3 aaron 25: .Op Fl i Ar identity_file
1.25 markus 26: .Op Fl l Ar limit
1.17 stevesk 27: .Op Fl o Ar ssh_option
1.29 jmc 28: .Op Fl P Ar port
29: .Op Fl S Ar program
1.3 aaron 30: .Sm off
31: .Oo
1.29 jmc 32: .Op Ar user No @
1.63 schwarze 33: .Ar host1 :
1.58 jmc 34: .Oc Ar file1
1.3 aaron 35: .Sm on
1.42 sobrado 36: .Ar ...
1.3 aaron 37: .Sm off
38: .Oo
1.29 jmc 39: .Op Ar user No @
1.63 schwarze 40: .Ar host2 :
1.3 aaron 41: .Oc Ar file2
42: .Sm on
1.27 jmc 43: .Ek
1.7 aaron 44: .Sh DESCRIPTION
1.3 aaron 45: .Nm
1.6 aaron 46: copies files between hosts on a network.
47: It uses
1.3 aaron 48: .Xr ssh 1
1.1 deraadt 49: for data transfer, and uses the same authentication and provides the
50: same security as
1.3 aaron 51: .Xr ssh 1 .
52: .Nm
1.1 deraadt 53: will ask for passwords or passphrases if they are needed for
54: authentication.
1.3 aaron 55: .Pp
1.44 jmc 56: File names may contain a user and host specification to indicate
1.6 aaron 57: that the file is to be copied to/from that host.
1.44 jmc 58: Local file names can be made explicit using absolute or relative pathnames
59: to avoid
60: .Nm
61: treating file names containing
62: .Sq :\&
63: as host specifiers.
64: Copies between two remote hosts are also permitted.
1.3 aaron 65: .Pp
66: The options are as follows:
67: .Bl -tag -width Ds
1.55 markus 68: .It Fl 3
69: Copies between two remote hosts are transferred through the local host.
70: Without this option the data is copied directly between the two remote
71: hosts.
1.56 jmc 72: Note that this option disables the progress meter.
1.29 jmc 73: .It Fl 4
74: Forces
75: .Nm
76: to use IPv4 addresses only.
77: .It Fl 6
78: Forces
1.3 aaron 79: .Nm
1.29 jmc 80: to use IPv6 addresses only.
1.3 aaron 81: .It Fl B
1.1 deraadt 82: Selects batch mode (prevents asking for passwords or passphrases).
1.3 aaron 83: .It Fl C
1.6 aaron 84: Compression enable.
85: Passes the
1.3 aaron 86: .Fl C
87: flag to
88: .Xr ssh 1
1.1 deraadt 89: to enable compression.
1.29 jmc 90: .It Fl c Ar cipher
91: Selects the cipher to use for encrypting the data transfer.
92: This option is directly passed to
93: .Xr ssh 1 .
1.19 stevesk 94: .It Fl F Ar ssh_config
95: Specifies an alternative
96: per-user configuration file for
97: .Nm ssh .
98: This option is directly passed to
99: .Xr ssh 1 .
1.29 jmc 100: .It Fl i Ar identity_file
1.46 djm 101: Selects the file from which the identity (private key) for public key
1.29 jmc 102: authentication is read.
103: This option is directly passed to
104: .Xr ssh 1 .
105: .It Fl l Ar limit
106: Limits the used bandwidth, specified in Kbit/s.
107: .It Fl o Ar ssh_option
108: Can be used to pass options to
109: .Nm ssh
110: in the format used in
111: .Xr ssh_config 5 .
112: This is useful for specifying options
113: for which there is no separate
114: .Nm scp
115: command-line flag.
116: For full details of the options listed below, and their possible values, see
117: .Xr ssh_config 5 .
118: .Pp
119: .Bl -tag -width Ds -offset indent -compact
120: .It AddressFamily
121: .It BatchMode
122: .It BindAddress
1.61 djm 123: .It CanonicalDomains
124: .It CanonicalizeFallbackLocal
125: .It CanonicalizeHostname
126: .It CanonicalizeMaxDots
127: .It CanonicalizePermittedCNAMEs
1.68 jmc 128: .It CertificateFile
1.29 jmc 129: .It ChallengeResponseAuthentication
130: .It CheckHostIP
131: .It Ciphers
132: .It Compression
1.74 ! naddy 133: .It ConnectionAttempts
1.34 dtucker 134: .It ConnectTimeout
1.36 djm 135: .It ControlMaster
136: .It ControlPath
1.57 djm 137: .It ControlPersist
1.29 jmc 138: .It GlobalKnownHostsFile
139: .It GSSAPIAuthentication
140: .It GSSAPIDelegateCredentials
1.38 jmc 141: .It HashKnownHosts
1.29 jmc 142: .It Host
143: .It HostbasedAuthentication
1.66 djm 144: .It HostbasedKeyTypes
1.29 jmc 145: .It HostKeyAlgorithms
146: .It HostKeyAlias
147: .It HostName
1.70 jmc 148: .It IdentitiesOnly
1.69 markus 149: .It IdentityAgent
1.29 jmc 150: .It IdentityFile
1.54 jmc 151: .It IPQoS
1.57 djm 152: .It KbdInteractiveAuthentication
1.37 djm 153: .It KbdInteractiveDevices
1.52 jmc 154: .It KexAlgorithms
1.29 jmc 155: .It LogLevel
156: .It MACs
157: .It NoHostAuthenticationForLocalhost
158: .It NumberOfPasswordPrompts
159: .It PasswordAuthentication
1.50 markus 160: .It PKCS11Provider
1.29 jmc 161: .It Port
162: .It PreferredAuthentications
163: .It ProxyCommand
1.71 jmc 164: .It ProxyJump
1.67 markus 165: .It PubkeyAcceptedKeyTypes
1.29 jmc 166: .It PubkeyAuthentication
1.39 dtucker 167: .It RekeyLimit
1.35 jmc 168: .It SendEnv
1.32 markus 169: .It ServerAliveInterval
170: .It ServerAliveCountMax
1.29 jmc 171: .It StrictHostKeyChecking
1.31 markus 172: .It TCPKeepAlive
1.65 jmc 173: .It UpdateHostKeys
1.29 jmc 174: .It UsePrivilegedPort
175: .It User
176: .It UserKnownHostsFile
177: .It VerifyHostKeyDNS
178: .El
1.4 markus 179: .It Fl P Ar port
1.6 aaron 180: Specifies the port to connect to on the remote host.
181: Note that this option is written with a capital
1.3 aaron 182: .Sq P ,
183: because
184: .Fl p
1.62 tedu 185: is already reserved for preserving the times and modes of the file.
1.29 jmc 186: .It Fl p
187: Preserves modification times, access times, and modes from the
188: original file.
189: .It Fl q
1.43 djm 190: Quiet mode: disables the progress meter as well as warning and diagnostic
191: messages from
192: .Xr ssh 1 .
1.29 jmc 193: .It Fl r
194: Recursively copy entire directories.
1.45 dtucker 195: Note that
196: .Nm
197: follows symbolic links encountered in the tree traversal.
1.10 deraadt 198: .It Fl S Ar program
199: Name of
200: .Ar program
1.12 aaron 201: to use for the encrypted connection.
202: The program must understand
1.9 deraadt 203: .Xr ssh 1
204: options.
1.29 jmc 205: .It Fl v
206: Verbose mode.
207: Causes
1.24 markus 208: .Nm
1.29 jmc 209: and
210: .Xr ssh 1
211: to print debugging messages about their progress.
212: This is helpful in
213: debugging connection, authentication, and configuration problems.
1.8 aaron 214: .El
1.51 jmc 215: .Sh EXIT STATUS
1.40 jmc 216: .Ex -std scp
1.3 aaron 217: .Sh SEE ALSO
1.14 djm 218: .Xr sftp 1 ,
1.3 aaron 219: .Xr ssh 1 ,
220: .Xr ssh-add 1 ,
221: .Xr ssh-agent 1 ,
222: .Xr ssh-keygen 1 ,
1.23 stevesk 223: .Xr ssh_config 5 ,
1.3 aaron 224: .Xr sshd 8
1.28 jmc 225: .Sh HISTORY
226: .Nm
1.62 tedu 227: is based on the rcp program in
1.60 jmc 228: .Bx
229: source code from the Regents of the University of California.
1.28 jmc 230: .Sh AUTHORS
1.59 schwarze 231: .An Timo Rinne Aq Mt tri@iki.fi
232: .An Tatu Ylonen Aq Mt ylo@cs.hut.fi