1511b41d2SMark Murray.\" 2511b41d2SMark Murray.\" scp.1 3511b41d2SMark Murray.\" 4511b41d2SMark Murray.\" Author: Tatu Ylonen <ylo@cs.hut.fi> 5511b41d2SMark Murray.\" 6511b41d2SMark Murray.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 7511b41d2SMark Murray.\" All rights reserved 8511b41d2SMark Murray.\" 9511b41d2SMark Murray.\" Created: Sun May 7 00:14:37 1995 ylo 10511b41d2SMark Murray.\" 11*190cef3dSDag-Erling Smørgrav.\" $OpenBSD: scp.1,v 1.80 2018/07/19 10:28:47 dtucker Exp $ 12511b41d2SMark Murray.\" 13*190cef3dSDag-Erling Smørgrav.Dd $Mdocdate: July 19 2018 $ 14511b41d2SMark Murray.Dt SCP 1 15511b41d2SMark Murray.Os 16511b41d2SMark Murray.Sh NAME 17511b41d2SMark Murray.Nm scp 18511b41d2SMark Murray.Nd secure copy (remote file copy program) 19511b41d2SMark Murray.Sh SYNOPSIS 20511b41d2SMark Murray.Nm scp 214f52dfbbSDag-Erling Smørgrav.Op Fl 346BCpqrv 22511b41d2SMark Murray.Op Fl c Ar cipher 23efcad6b7SDag-Erling Smørgrav.Op Fl F Ar ssh_config 24511b41d2SMark Murray.Op Fl i Ar identity_file 25d0c8c0bcSDag-Erling Smørgrav.Op Fl l Ar limit 26ae1f160dSDag-Erling Smørgrav.Op Fl o Ar ssh_option 27efcad6b7SDag-Erling Smørgrav.Op Fl P Ar port 28efcad6b7SDag-Erling Smørgrav.Op Fl S Ar program 2947dd1d1bSDag-Erling Smørgrav.Ar source ... target 30511b41d2SMark Murray.Sh DESCRIPTION 31511b41d2SMark Murray.Nm 32a8f6863aSKris Kennawaycopies files between hosts on a network. 33a8f6863aSKris KennawayIt uses 34511b41d2SMark Murray.Xr ssh 1 35511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the 36511b41d2SMark Murraysame security as 37511b41d2SMark Murray.Xr ssh 1 . 38511b41d2SMark Murray.Nm 39511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for 40511b41d2SMark Murrayauthentication. 41511b41d2SMark Murray.Pp 4247dd1d1bSDag-Erling SmørgravThe 4347dd1d1bSDag-Erling Smørgrav.Ar source 4447dd1d1bSDag-Erling Smørgravand 4547dd1d1bSDag-Erling Smørgrav.Ar target 4647dd1d1bSDag-Erling Smørgravmay be specified as a local pathname, a remote host with optional path 4747dd1d1bSDag-Erling Smørgravin the form 4847dd1d1bSDag-Erling Smørgrav.Sm off 4947dd1d1bSDag-Erling Smørgrav.Oo user @ Oc host : Op path , 5047dd1d1bSDag-Erling Smørgrav.Sm on 5147dd1d1bSDag-Erling Smørgravor a URI in the form 5247dd1d1bSDag-Erling Smørgrav.Sm off 5347dd1d1bSDag-Erling Smørgrav.No scp:// Oo user @ Oc host Oo : port Oc Op / path . 5447dd1d1bSDag-Erling Smørgrav.Sm on 55d4af9e69SDag-Erling SmørgravLocal file names can be made explicit using absolute or relative pathnames 56d4af9e69SDag-Erling Smørgravto avoid 57d4af9e69SDag-Erling Smørgrav.Nm 58d4af9e69SDag-Erling Smørgravtreating file names containing 59d4af9e69SDag-Erling Smørgrav.Sq :\& 60d4af9e69SDag-Erling Smørgravas host specifiers. 6147dd1d1bSDag-Erling Smørgrav.Pp 6247dd1d1bSDag-Erling SmørgravWhen copying between two remote hosts, if the URI format is used, a 6347dd1d1bSDag-Erling Smørgrav.Ar port 6447dd1d1bSDag-Erling Smørgravmay only be specified on the 6547dd1d1bSDag-Erling Smørgrav.Ar target 6647dd1d1bSDag-Erling Smørgravif the 6747dd1d1bSDag-Erling Smørgrav.Fl 3 6847dd1d1bSDag-Erling Smørgravoption is used. 69511b41d2SMark Murray.Pp 70511b41d2SMark MurrayThe options are as follows: 71511b41d2SMark Murray.Bl -tag -width Ds 724a421b63SDag-Erling Smørgrav.It Fl 3 734a421b63SDag-Erling SmørgravCopies between two remote hosts are transferred through the local host. 744a421b63SDag-Erling SmørgravWithout this option the data is copied directly between the two remote 754a421b63SDag-Erling Smørgravhosts. 764a421b63SDag-Erling SmørgravNote that this option disables the progress meter. 77511b41d2SMark Murray.It Fl 4 78511b41d2SMark MurrayForces 79511b41d2SMark Murray.Nm 80511b41d2SMark Murrayto use IPv4 addresses only. 81511b41d2SMark Murray.It Fl 6 82511b41d2SMark MurrayForces 83511b41d2SMark Murray.Nm 84511b41d2SMark Murrayto use IPv6 addresses only. 85efcad6b7SDag-Erling Smørgrav.It Fl B 86efcad6b7SDag-Erling SmørgravSelects batch mode (prevents asking for passwords or passphrases). 87efcad6b7SDag-Erling Smørgrav.It Fl C 88efcad6b7SDag-Erling SmørgravCompression enable. 89efcad6b7SDag-Erling SmørgravPasses the 90efcad6b7SDag-Erling Smørgrav.Fl C 91efcad6b7SDag-Erling Smørgravflag to 92efcad6b7SDag-Erling Smørgrav.Xr ssh 1 93efcad6b7SDag-Erling Smørgravto enable compression. 94efcad6b7SDag-Erling Smørgrav.It Fl c Ar cipher 95efcad6b7SDag-Erling SmørgravSelects the cipher to use for encrypting the data transfer. 96efcad6b7SDag-Erling SmørgravThis option is directly passed to 97efcad6b7SDag-Erling Smørgrav.Xr ssh 1 . 98efcad6b7SDag-Erling Smørgrav.It Fl F Ar ssh_config 99efcad6b7SDag-Erling SmørgravSpecifies an alternative 100efcad6b7SDag-Erling Smørgravper-user configuration file for 101efcad6b7SDag-Erling Smørgrav.Nm ssh . 102efcad6b7SDag-Erling SmørgravThis option is directly passed to 103efcad6b7SDag-Erling Smørgrav.Xr ssh 1 . 104efcad6b7SDag-Erling Smørgrav.It Fl i Ar identity_file 105d4af9e69SDag-Erling SmørgravSelects the file from which the identity (private key) for public key 106efcad6b7SDag-Erling Smørgravauthentication is read. 107efcad6b7SDag-Erling SmørgravThis option is directly passed to 108efcad6b7SDag-Erling Smørgrav.Xr ssh 1 . 109efcad6b7SDag-Erling Smørgrav.It Fl l Ar limit 110efcad6b7SDag-Erling SmørgravLimits the used bandwidth, specified in Kbit/s. 111efcad6b7SDag-Erling Smørgrav.It Fl o Ar ssh_option 112efcad6b7SDag-Erling SmørgravCan be used to pass options to 113efcad6b7SDag-Erling Smørgrav.Nm ssh 114efcad6b7SDag-Erling Smørgravin the format used in 115efcad6b7SDag-Erling Smørgrav.Xr ssh_config 5 . 116efcad6b7SDag-Erling SmørgravThis is useful for specifying options 117efcad6b7SDag-Erling Smørgravfor which there is no separate 118efcad6b7SDag-Erling Smørgrav.Nm scp 119efcad6b7SDag-Erling Smørgravcommand-line flag. 120efcad6b7SDag-Erling SmørgravFor full details of the options listed below, and their possible values, see 121efcad6b7SDag-Erling Smørgrav.Xr ssh_config 5 . 122efcad6b7SDag-Erling Smørgrav.Pp 123efcad6b7SDag-Erling Smørgrav.Bl -tag -width Ds -offset indent -compact 124efcad6b7SDag-Erling Smørgrav.It AddressFamily 125efcad6b7SDag-Erling Smørgrav.It BatchMode 126efcad6b7SDag-Erling Smørgrav.It BindAddress 12747dd1d1bSDag-Erling Smørgrav.It BindInterface 128f7167e0eSDag-Erling Smørgrav.It CanonicalDomains 129f7167e0eSDag-Erling Smørgrav.It CanonicalizeFallbackLocal 130f7167e0eSDag-Erling Smørgrav.It CanonicalizeHostname 131f7167e0eSDag-Erling Smørgrav.It CanonicalizeMaxDots 132f7167e0eSDag-Erling Smørgrav.It CanonicalizePermittedCNAMEs 133acc1a9efSDag-Erling Smørgrav.It CertificateFile 134efcad6b7SDag-Erling Smørgrav.It ChallengeResponseAuthentication 135efcad6b7SDag-Erling Smørgrav.It CheckHostIP 136efcad6b7SDag-Erling Smørgrav.It Ciphers 137efcad6b7SDag-Erling Smørgrav.It Compression 138efcad6b7SDag-Erling Smørgrav.It ConnectionAttempts 139d74d50a8SDag-Erling Smørgrav.It ConnectTimeout 140d74d50a8SDag-Erling Smørgrav.It ControlMaster 141d74d50a8SDag-Erling Smørgrav.It ControlPath 142462c32cbSDag-Erling Smørgrav.It ControlPersist 143efcad6b7SDag-Erling Smørgrav.It GlobalKnownHostsFile 144efcad6b7SDag-Erling Smørgrav.It GSSAPIAuthentication 145efcad6b7SDag-Erling Smørgrav.It GSSAPIDelegateCredentials 1465e8dbd04SDag-Erling Smørgrav.It HashKnownHosts 147efcad6b7SDag-Erling Smørgrav.It Host 148efcad6b7SDag-Erling Smørgrav.It HostbasedAuthentication 149bc5531deSDag-Erling Smørgrav.It HostbasedKeyTypes 150efcad6b7SDag-Erling Smørgrav.It HostKeyAlgorithms 151efcad6b7SDag-Erling Smørgrav.It HostKeyAlias 152efcad6b7SDag-Erling Smørgrav.It HostName 15352028650SDag-Erling Smørgrav.It IdentitiesOnly 154076ad2f8SDag-Erling Smørgrav.It IdentityAgent 155076ad2f8SDag-Erling Smørgrav.It IdentityFile 1564a421b63SDag-Erling Smørgrav.It IPQoS 157462c32cbSDag-Erling Smørgrav.It KbdInteractiveAuthentication 1585e8dbd04SDag-Erling Smørgrav.It KbdInteractiveDevices 1594a421b63SDag-Erling Smørgrav.It KexAlgorithms 160efcad6b7SDag-Erling Smørgrav.It LogLevel 161efcad6b7SDag-Erling Smørgrav.It MACs 162efcad6b7SDag-Erling Smørgrav.It NoHostAuthenticationForLocalhost 163efcad6b7SDag-Erling Smørgrav.It NumberOfPasswordPrompts 164efcad6b7SDag-Erling Smørgrav.It PasswordAuthentication 165b15c8340SDag-Erling Smørgrav.It PKCS11Provider 166efcad6b7SDag-Erling Smørgrav.It Port 167efcad6b7SDag-Erling Smørgrav.It PreferredAuthentications 168efcad6b7SDag-Erling Smørgrav.It ProxyCommand 169076ad2f8SDag-Erling Smørgrav.It ProxyJump 170eccfee6eSDag-Erling Smørgrav.It PubkeyAcceptedKeyTypes 171efcad6b7SDag-Erling Smørgrav.It PubkeyAuthentication 172021d409fSDag-Erling Smørgrav.It RekeyLimit 173d74d50a8SDag-Erling Smørgrav.It SendEnv 174efcad6b7SDag-Erling Smørgrav.It ServerAliveInterval 175efcad6b7SDag-Erling Smørgrav.It ServerAliveCountMax 176*190cef3dSDag-Erling Smørgrav.It SetEnv 177efcad6b7SDag-Erling Smørgrav.It StrictHostKeyChecking 178efcad6b7SDag-Erling Smørgrav.It TCPKeepAlive 179bc5531deSDag-Erling Smørgrav.It UpdateHostKeys 180efcad6b7SDag-Erling Smørgrav.It User 181efcad6b7SDag-Erling Smørgrav.It UserKnownHostsFile 182efcad6b7SDag-Erling Smørgrav.It VerifyHostKeyDNS 183efcad6b7SDag-Erling Smørgrav.El 184efcad6b7SDag-Erling Smørgrav.It Fl P Ar port 185efcad6b7SDag-Erling SmørgravSpecifies the port to connect to on the remote host. 186efcad6b7SDag-Erling SmørgravNote that this option is written with a capital 187efcad6b7SDag-Erling Smørgrav.Sq P , 188efcad6b7SDag-Erling Smørgravbecause 189efcad6b7SDag-Erling Smørgrav.Fl p 190a0ee8cc6SDag-Erling Smørgravis already reserved for preserving the times and modes of the file. 191efcad6b7SDag-Erling Smørgrav.It Fl p 192efcad6b7SDag-Erling SmørgravPreserves modification times, access times, and modes from the 193efcad6b7SDag-Erling Smørgravoriginal file. 194efcad6b7SDag-Erling Smørgrav.It Fl q 195d4af9e69SDag-Erling SmørgravQuiet mode: disables the progress meter as well as warning and diagnostic 196d4af9e69SDag-Erling Smørgravmessages from 197d4af9e69SDag-Erling Smørgrav.Xr ssh 1 . 198efcad6b7SDag-Erling Smørgrav.It Fl r 199efcad6b7SDag-Erling SmørgravRecursively copy entire directories. 200d4af9e69SDag-Erling SmørgravNote that 201d4af9e69SDag-Erling Smørgrav.Nm 202d4af9e69SDag-Erling Smørgravfollows symbolic links encountered in the tree traversal. 203efcad6b7SDag-Erling Smørgrav.It Fl S Ar program 204efcad6b7SDag-Erling SmørgravName of 205efcad6b7SDag-Erling Smørgrav.Ar program 206efcad6b7SDag-Erling Smørgravto use for the encrypted connection. 207efcad6b7SDag-Erling SmørgravThe program must understand 208efcad6b7SDag-Erling Smørgrav.Xr ssh 1 209efcad6b7SDag-Erling Smørgravoptions. 210efcad6b7SDag-Erling Smørgrav.It Fl v 211efcad6b7SDag-Erling SmørgravVerbose mode. 212efcad6b7SDag-Erling SmørgravCauses 213efcad6b7SDag-Erling Smørgrav.Nm 214efcad6b7SDag-Erling Smørgravand 215efcad6b7SDag-Erling Smørgrav.Xr ssh 1 216efcad6b7SDag-Erling Smørgravto print debugging messages about their progress. 217efcad6b7SDag-Erling SmørgravThis is helpful in 218efcad6b7SDag-Erling Smørgravdebugging connection, authentication, and configuration problems. 219b66f2d16SKris Kennaway.El 2204a421b63SDag-Erling Smørgrav.Sh EXIT STATUS 221761efaa7SDag-Erling Smørgrav.Ex -std scp 222511b41d2SMark Murray.Sh SEE ALSO 2231e8db6e2SBrian Feldman.Xr sftp 1 , 224511b41d2SMark Murray.Xr ssh 1 , 225511b41d2SMark Murray.Xr ssh-add 1 , 226511b41d2SMark Murray.Xr ssh-agent 1 , 227511b41d2SMark Murray.Xr ssh-keygen 1 , 228ee21a45fSDag-Erling Smørgrav.Xr ssh_config 5 , 229511b41d2SMark Murray.Xr sshd 8 230d95e11bfSDag-Erling Smørgrav.Sh HISTORY 231d95e11bfSDag-Erling Smørgrav.Nm 232a0ee8cc6SDag-Erling Smørgravis based on the rcp program in 233f7167e0eSDag-Erling Smørgrav.Bx 234f7167e0eSDag-Erling Smørgravsource code from the Regents of the University of California. 235d95e11bfSDag-Erling Smørgrav.Sh AUTHORS 236e4a9863fSDag-Erling Smørgrav.An Timo Rinne Aq Mt tri@iki.fi 237e4a9863fSDag-Erling Smørgrav.An Tatu Ylonen Aq Mt ylo@cs.hut.fi 238