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*076ad2f8SDag-Erling Smørgrav.\" $OpenBSD: scp.1,v 1.71 2016/07/16 06:57:55 jmc Exp $ 12511b41d2SMark Murray.\" 13*076ad2f8SDag-Erling Smørgrav.Dd $Mdocdate: July 16 2016 $ 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 21d0c8c0bcSDag-Erling Smørgrav.Bk -words 224a421b63SDag-Erling Smørgrav.Op Fl 12346BCpqrv 23511b41d2SMark Murray.Op Fl c Ar cipher 24efcad6b7SDag-Erling Smørgrav.Op Fl F Ar ssh_config 25511b41d2SMark Murray.Op Fl i Ar identity_file 26d0c8c0bcSDag-Erling Smørgrav.Op Fl l Ar limit 27ae1f160dSDag-Erling Smørgrav.Op Fl o Ar ssh_option 28efcad6b7SDag-Erling Smørgrav.Op Fl P Ar port 29efcad6b7SDag-Erling Smørgrav.Op Fl S Ar program 30511b41d2SMark Murray.Sm off 31511b41d2SMark Murray.Oo 32efcad6b7SDag-Erling Smørgrav.Op Ar user No @ 33bc5531deSDag-Erling Smørgrav.Ar host1 : 34462c32cbSDag-Erling Smørgrav.Oc Ar file1 35511b41d2SMark Murray.Sm on 36d4af9e69SDag-Erling Smørgrav.Ar ... 37511b41d2SMark Murray.Sm off 38511b41d2SMark Murray.Oo 39efcad6b7SDag-Erling Smørgrav.Op Ar user No @ 40bc5531deSDag-Erling Smørgrav.Ar host2 : 41511b41d2SMark Murray.Oc Ar file2 42511b41d2SMark Murray.Sm on 43d0c8c0bcSDag-Erling Smørgrav.Ek 44511b41d2SMark Murray.Sh DESCRIPTION 45511b41d2SMark Murray.Nm 46a8f6863aSKris Kennawaycopies files between hosts on a network. 47a8f6863aSKris KennawayIt uses 48511b41d2SMark Murray.Xr ssh 1 49511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the 50511b41d2SMark Murraysame security as 51511b41d2SMark Murray.Xr ssh 1 . 52511b41d2SMark Murray.Nm 53511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for 54511b41d2SMark Murrayauthentication. 55511b41d2SMark Murray.Pp 56d4af9e69SDag-Erling SmørgravFile names may contain a user and host specification to indicate 57a8f6863aSKris Kennawaythat the file is to be copied to/from that host. 58d4af9e69SDag-Erling SmørgravLocal file names can be made explicit using absolute or relative pathnames 59d4af9e69SDag-Erling Smørgravto avoid 60d4af9e69SDag-Erling Smørgrav.Nm 61d4af9e69SDag-Erling Smørgravtreating file names containing 62d4af9e69SDag-Erling Smørgrav.Sq :\& 63d4af9e69SDag-Erling Smørgravas host specifiers. 64d4af9e69SDag-Erling SmørgravCopies between two remote hosts are also permitted. 65511b41d2SMark Murray.Pp 66511b41d2SMark MurrayThe options are as follows: 67511b41d2SMark Murray.Bl -tag -width Ds 68d0c8c0bcSDag-Erling Smørgrav.It Fl 1 69d0c8c0bcSDag-Erling SmørgravForces 70d0c8c0bcSDag-Erling Smørgrav.Nm 71d0c8c0bcSDag-Erling Smørgravto use protocol 1. 72d0c8c0bcSDag-Erling Smørgrav.It Fl 2 73d0c8c0bcSDag-Erling SmørgravForces 74d0c8c0bcSDag-Erling Smørgrav.Nm 75d0c8c0bcSDag-Erling Smørgravto use protocol 2. 764a421b63SDag-Erling Smørgrav.It Fl 3 774a421b63SDag-Erling SmørgravCopies between two remote hosts are transferred through the local host. 784a421b63SDag-Erling SmørgravWithout this option the data is copied directly between the two remote 794a421b63SDag-Erling Smørgravhosts. 804a421b63SDag-Erling SmørgravNote that this option disables the progress meter. 81511b41d2SMark Murray.It Fl 4 82511b41d2SMark MurrayForces 83511b41d2SMark Murray.Nm 84511b41d2SMark Murrayto use IPv4 addresses only. 85511b41d2SMark Murray.It Fl 6 86511b41d2SMark MurrayForces 87511b41d2SMark Murray.Nm 88511b41d2SMark Murrayto use IPv6 addresses only. 89efcad6b7SDag-Erling Smørgrav.It Fl B 90efcad6b7SDag-Erling SmørgravSelects batch mode (prevents asking for passwords or passphrases). 91efcad6b7SDag-Erling Smørgrav.It Fl C 92efcad6b7SDag-Erling SmørgravCompression enable. 93efcad6b7SDag-Erling SmørgravPasses the 94efcad6b7SDag-Erling Smørgrav.Fl C 95efcad6b7SDag-Erling Smørgravflag to 96efcad6b7SDag-Erling Smørgrav.Xr ssh 1 97efcad6b7SDag-Erling Smørgravto enable compression. 98efcad6b7SDag-Erling Smørgrav.It Fl c Ar cipher 99efcad6b7SDag-Erling SmørgravSelects the cipher to use for encrypting the data transfer. 100efcad6b7SDag-Erling SmørgravThis option is directly passed to 101efcad6b7SDag-Erling Smørgrav.Xr ssh 1 . 102efcad6b7SDag-Erling Smørgrav.It Fl F Ar ssh_config 103efcad6b7SDag-Erling SmørgravSpecifies an alternative 104efcad6b7SDag-Erling Smørgravper-user configuration file for 105efcad6b7SDag-Erling Smørgrav.Nm ssh . 106efcad6b7SDag-Erling SmørgravThis option is directly passed to 107efcad6b7SDag-Erling Smørgrav.Xr ssh 1 . 108efcad6b7SDag-Erling Smørgrav.It Fl i Ar identity_file 109d4af9e69SDag-Erling SmørgravSelects the file from which the identity (private key) for public key 110efcad6b7SDag-Erling Smørgravauthentication is read. 111efcad6b7SDag-Erling SmørgravThis option is directly passed to 112efcad6b7SDag-Erling Smørgrav.Xr ssh 1 . 113efcad6b7SDag-Erling Smørgrav.It Fl l Ar limit 114efcad6b7SDag-Erling SmørgravLimits the used bandwidth, specified in Kbit/s. 115efcad6b7SDag-Erling Smørgrav.It Fl o Ar ssh_option 116efcad6b7SDag-Erling SmørgravCan be used to pass options to 117efcad6b7SDag-Erling Smørgrav.Nm ssh 118efcad6b7SDag-Erling Smørgravin the format used in 119efcad6b7SDag-Erling Smørgrav.Xr ssh_config 5 . 120efcad6b7SDag-Erling SmørgravThis is useful for specifying options 121efcad6b7SDag-Erling Smørgravfor which there is no separate 122efcad6b7SDag-Erling Smørgrav.Nm scp 123efcad6b7SDag-Erling Smørgravcommand-line flag. 124efcad6b7SDag-Erling SmørgravFor full details of the options listed below, and their possible values, see 125efcad6b7SDag-Erling Smørgrav.Xr ssh_config 5 . 126efcad6b7SDag-Erling Smørgrav.Pp 127efcad6b7SDag-Erling Smørgrav.Bl -tag -width Ds -offset indent -compact 128efcad6b7SDag-Erling Smørgrav.It AddressFamily 129efcad6b7SDag-Erling Smørgrav.It BatchMode 130efcad6b7SDag-Erling Smørgrav.It BindAddress 131f7167e0eSDag-Erling Smørgrav.It CanonicalDomains 132f7167e0eSDag-Erling Smørgrav.It CanonicalizeFallbackLocal 133f7167e0eSDag-Erling Smørgrav.It CanonicalizeHostname 134f7167e0eSDag-Erling Smørgrav.It CanonicalizeMaxDots 135f7167e0eSDag-Erling Smørgrav.It CanonicalizePermittedCNAMEs 136acc1a9efSDag-Erling Smørgrav.It CertificateFile 137efcad6b7SDag-Erling Smørgrav.It ChallengeResponseAuthentication 138efcad6b7SDag-Erling Smørgrav.It CheckHostIP 139efcad6b7SDag-Erling Smørgrav.It Cipher 140efcad6b7SDag-Erling Smørgrav.It Ciphers 141efcad6b7SDag-Erling Smørgrav.It Compression 142efcad6b7SDag-Erling Smørgrav.It CompressionLevel 143efcad6b7SDag-Erling Smørgrav.It ConnectionAttempts 144d74d50a8SDag-Erling Smørgrav.It ConnectTimeout 145d74d50a8SDag-Erling Smørgrav.It ControlMaster 146d74d50a8SDag-Erling Smørgrav.It ControlPath 147462c32cbSDag-Erling Smørgrav.It ControlPersist 148efcad6b7SDag-Erling Smørgrav.It GlobalKnownHostsFile 149efcad6b7SDag-Erling Smørgrav.It GSSAPIAuthentication 150efcad6b7SDag-Erling Smørgrav.It GSSAPIDelegateCredentials 1515e8dbd04SDag-Erling Smørgrav.It HashKnownHosts 152efcad6b7SDag-Erling Smørgrav.It Host 153efcad6b7SDag-Erling Smørgrav.It HostbasedAuthentication 154bc5531deSDag-Erling Smørgrav.It HostbasedKeyTypes 155efcad6b7SDag-Erling Smørgrav.It HostKeyAlgorithms 156efcad6b7SDag-Erling Smørgrav.It HostKeyAlias 157efcad6b7SDag-Erling Smørgrav.It HostName 15852028650SDag-Erling Smørgrav.It IdentitiesOnly 159*076ad2f8SDag-Erling Smørgrav.It IdentityAgent 160*076ad2f8SDag-Erling Smørgrav.It IdentityFile 1614a421b63SDag-Erling Smørgrav.It IPQoS 162462c32cbSDag-Erling Smørgrav.It KbdInteractiveAuthentication 1635e8dbd04SDag-Erling Smørgrav.It KbdInteractiveDevices 1644a421b63SDag-Erling Smørgrav.It KexAlgorithms 165efcad6b7SDag-Erling Smørgrav.It LogLevel 166efcad6b7SDag-Erling Smørgrav.It MACs 167efcad6b7SDag-Erling Smørgrav.It NoHostAuthenticationForLocalhost 168efcad6b7SDag-Erling Smørgrav.It NumberOfPasswordPrompts 169efcad6b7SDag-Erling Smørgrav.It PasswordAuthentication 170b15c8340SDag-Erling Smørgrav.It PKCS11Provider 171efcad6b7SDag-Erling Smørgrav.It Port 172efcad6b7SDag-Erling Smørgrav.It PreferredAuthentications 173efcad6b7SDag-Erling Smørgrav.It Protocol 174efcad6b7SDag-Erling Smørgrav.It ProxyCommand 175*076ad2f8SDag-Erling Smørgrav.It ProxyJump 176eccfee6eSDag-Erling Smørgrav.It PubkeyAcceptedKeyTypes 177efcad6b7SDag-Erling Smørgrav.It PubkeyAuthentication 178021d409fSDag-Erling Smørgrav.It RekeyLimit 179efcad6b7SDag-Erling Smørgrav.It RhostsRSAAuthentication 180efcad6b7SDag-Erling Smørgrav.It RSAAuthentication 181d74d50a8SDag-Erling Smørgrav.It SendEnv 182efcad6b7SDag-Erling Smørgrav.It ServerAliveInterval 183efcad6b7SDag-Erling Smørgrav.It ServerAliveCountMax 184efcad6b7SDag-Erling Smørgrav.It StrictHostKeyChecking 185efcad6b7SDag-Erling Smørgrav.It TCPKeepAlive 186bc5531deSDag-Erling Smørgrav.It UpdateHostKeys 187efcad6b7SDag-Erling Smørgrav.It UsePrivilegedPort 188efcad6b7SDag-Erling Smørgrav.It User 189efcad6b7SDag-Erling Smørgrav.It UserKnownHostsFile 190efcad6b7SDag-Erling Smørgrav.It VerifyHostKeyDNS 191efcad6b7SDag-Erling Smørgrav.El 192efcad6b7SDag-Erling Smørgrav.It Fl P Ar port 193efcad6b7SDag-Erling SmørgravSpecifies the port to connect to on the remote host. 194efcad6b7SDag-Erling SmørgravNote that this option is written with a capital 195efcad6b7SDag-Erling Smørgrav.Sq P , 196efcad6b7SDag-Erling Smørgravbecause 197efcad6b7SDag-Erling Smørgrav.Fl p 198a0ee8cc6SDag-Erling Smørgravis already reserved for preserving the times and modes of the file. 199efcad6b7SDag-Erling Smørgrav.It Fl p 200efcad6b7SDag-Erling SmørgravPreserves modification times, access times, and modes from the 201efcad6b7SDag-Erling Smørgravoriginal file. 202efcad6b7SDag-Erling Smørgrav.It Fl q 203d4af9e69SDag-Erling SmørgravQuiet mode: disables the progress meter as well as warning and diagnostic 204d4af9e69SDag-Erling Smørgravmessages from 205d4af9e69SDag-Erling Smørgrav.Xr ssh 1 . 206efcad6b7SDag-Erling Smørgrav.It Fl r 207efcad6b7SDag-Erling SmørgravRecursively copy entire directories. 208d4af9e69SDag-Erling SmørgravNote that 209d4af9e69SDag-Erling Smørgrav.Nm 210d4af9e69SDag-Erling Smørgravfollows symbolic links encountered in the tree traversal. 211efcad6b7SDag-Erling Smørgrav.It Fl S Ar program 212efcad6b7SDag-Erling SmørgravName of 213efcad6b7SDag-Erling Smørgrav.Ar program 214efcad6b7SDag-Erling Smørgravto use for the encrypted connection. 215efcad6b7SDag-Erling SmørgravThe program must understand 216efcad6b7SDag-Erling Smørgrav.Xr ssh 1 217efcad6b7SDag-Erling Smørgravoptions. 218efcad6b7SDag-Erling Smørgrav.It Fl v 219efcad6b7SDag-Erling SmørgravVerbose mode. 220efcad6b7SDag-Erling SmørgravCauses 221efcad6b7SDag-Erling Smørgrav.Nm 222efcad6b7SDag-Erling Smørgravand 223efcad6b7SDag-Erling Smørgrav.Xr ssh 1 224efcad6b7SDag-Erling Smørgravto print debugging messages about their progress. 225efcad6b7SDag-Erling SmørgravThis is helpful in 226efcad6b7SDag-Erling Smørgravdebugging connection, authentication, and configuration problems. 227b66f2d16SKris Kennaway.El 2284a421b63SDag-Erling Smørgrav.Sh EXIT STATUS 229761efaa7SDag-Erling Smørgrav.Ex -std scp 230511b41d2SMark Murray.Sh SEE ALSO 2311e8db6e2SBrian Feldman.Xr sftp 1 , 232511b41d2SMark Murray.Xr ssh 1 , 233511b41d2SMark Murray.Xr ssh-add 1 , 234511b41d2SMark Murray.Xr ssh-agent 1 , 235511b41d2SMark Murray.Xr ssh-keygen 1 , 236ee21a45fSDag-Erling Smørgrav.Xr ssh_config 5 , 237511b41d2SMark Murray.Xr sshd 8 238d95e11bfSDag-Erling Smørgrav.Sh HISTORY 239d95e11bfSDag-Erling Smørgrav.Nm 240a0ee8cc6SDag-Erling Smørgravis based on the rcp program in 241f7167e0eSDag-Erling Smørgrav.Bx 242f7167e0eSDag-Erling Smørgravsource code from the Regents of the University of California. 243d95e11bfSDag-Erling Smørgrav.Sh AUTHORS 244e4a9863fSDag-Erling Smørgrav.An Timo Rinne Aq Mt tri@iki.fi 245e4a9863fSDag-Erling Smørgrav.An Tatu Ylonen Aq Mt ylo@cs.hut.fi 246