1511b41d2SMark Murray.\" -*- nroff -*- 2511b41d2SMark Murray.\" 3511b41d2SMark Murray.\" scp.1 4511b41d2SMark Murray.\" 5511b41d2SMark Murray.\" Author: Tatu Ylonen <ylo@cs.hut.fi> 6511b41d2SMark Murray.\" 7511b41d2SMark Murray.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 8511b41d2SMark Murray.\" All rights reserved 9511b41d2SMark Murray.\" 10511b41d2SMark Murray.\" Created: Sun May 7 00:14:37 1995 ylo 11511b41d2SMark Murray.\" 12d0c8c0bcSDag-Erling Smørgrav.\" $OpenBSD: scp.1,v 1.27 2003/03/28 10:11:43 jmc Exp $ 13511b41d2SMark Murray.\" 14511b41d2SMark Murray.Dd September 25, 1999 15511b41d2SMark Murray.Dt SCP 1 16511b41d2SMark Murray.Os 17511b41d2SMark Murray.Sh NAME 18511b41d2SMark Murray.Nm scp 19511b41d2SMark Murray.Nd secure copy (remote file copy program) 20511b41d2SMark Murray.Sh SYNOPSIS 21511b41d2SMark Murray.Nm scp 22d0c8c0bcSDag-Erling Smørgrav.Bk -words 23d0c8c0bcSDag-Erling Smørgrav.Op Fl pqrvBC1246 24ae1f160dSDag-Erling Smørgrav.Op Fl F Ar ssh_config 25b66f2d16SKris Kennaway.Op Fl S Ar program 26511b41d2SMark Murray.Op Fl P Ar port 27511b41d2SMark Murray.Op Fl c Ar cipher 28511b41d2SMark Murray.Op Fl i Ar identity_file 29d0c8c0bcSDag-Erling Smørgrav.Op Fl l Ar limit 30ae1f160dSDag-Erling Smørgrav.Op Fl o Ar ssh_option 31511b41d2SMark Murray.Sm off 32511b41d2SMark Murray.Oo 33511b41d2SMark Murray.Op Ar user@ 34511b41d2SMark Murray.Ar host1 No : 35511b41d2SMark Murray.Oc Ns Ar file1 36511b41d2SMark Murray.Sm on 37511b41d2SMark Murray.Op Ar ... 38511b41d2SMark Murray.Sm off 39511b41d2SMark Murray.Oo 40511b41d2SMark Murray.Op Ar user@ 41511b41d2SMark Murray.Ar host2 No : 42511b41d2SMark Murray.Oc Ar file2 43511b41d2SMark Murray.Sm on 44d0c8c0bcSDag-Erling Smørgrav.Ek 45511b41d2SMark Murray.Sh DESCRIPTION 46511b41d2SMark Murray.Nm 47a8f6863aSKris Kennawaycopies files between hosts on a network. 48a8f6863aSKris KennawayIt uses 49511b41d2SMark Murray.Xr ssh 1 50511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the 51511b41d2SMark Murraysame security as 52511b41d2SMark Murray.Xr ssh 1 . 53511b41d2SMark MurrayUnlike 54511b41d2SMark Murray.Xr rcp 1 , 55511b41d2SMark Murray.Nm 56511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for 57511b41d2SMark Murrayauthentication. 58511b41d2SMark Murray.Pp 59511b41d2SMark MurrayAny file name may contain a host and user specification to indicate 60a8f6863aSKris Kennawaythat the file is to be copied to/from that host. 61a8f6863aSKris KennawayCopies between two remote hosts are permitted. 62511b41d2SMark Murray.Pp 63511b41d2SMark MurrayThe options are as follows: 64511b41d2SMark Murray.Bl -tag -width Ds 65511b41d2SMark Murray.It Fl c Ar cipher 66a8f6863aSKris KennawaySelects the cipher to use for encrypting the data transfer. 67a8f6863aSKris KennawayThis option is directly passed to 68511b41d2SMark Murray.Xr ssh 1 . 69511b41d2SMark Murray.It Fl i Ar identity_file 70511b41d2SMark MurraySelects the file from which the identity (private key) for RSA 71a8f6863aSKris Kennawayauthentication is read. 72a8f6863aSKris KennawayThis option is directly passed to 73511b41d2SMark Murray.Xr ssh 1 . 74d0c8c0bcSDag-Erling Smørgrav.It Fl l Ar limit 75d0c8c0bcSDag-Erling SmørgravLimits the used bandwidth, specified in Kbit/s. 76511b41d2SMark Murray.It Fl p 77511b41d2SMark MurrayPreserves modification times, access times, and modes from the 78511b41d2SMark Murrayoriginal file. 79511b41d2SMark Murray.It Fl r 80511b41d2SMark MurrayRecursively copy entire directories. 81511b41d2SMark Murray.It Fl v 82a8f6863aSKris KennawayVerbose mode. 83a8f6863aSKris KennawayCauses 84511b41d2SMark Murray.Nm 85511b41d2SMark Murrayand 86511b41d2SMark Murray.Xr ssh 1 87a8f6863aSKris Kennawayto print debugging messages about their progress. 88a8f6863aSKris KennawayThis is helpful in 89511b41d2SMark Murraydebugging connection, authentication, and configuration problems. 90511b41d2SMark Murray.It Fl B 91511b41d2SMark MurraySelects batch mode (prevents asking for passwords or passphrases). 92511b41d2SMark Murray.It Fl q 93511b41d2SMark MurrayDisables the progress meter. 94511b41d2SMark Murray.It Fl C 95a8f6863aSKris KennawayCompression enable. 96a8f6863aSKris KennawayPasses the 97511b41d2SMark Murray.Fl C 98511b41d2SMark Murrayflag to 99511b41d2SMark Murray.Xr ssh 1 100511b41d2SMark Murrayto enable compression. 101ae1f160dSDag-Erling Smørgrav.It Fl F Ar ssh_config 102ae1f160dSDag-Erling SmørgravSpecifies an alternative 103ae1f160dSDag-Erling Smørgravper-user configuration file for 104ae1f160dSDag-Erling Smørgrav.Nm ssh . 105ae1f160dSDag-Erling SmørgravThis option is directly passed to 106ae1f160dSDag-Erling Smørgrav.Xr ssh 1 . 107511b41d2SMark Murray.It Fl P Ar port 108a8f6863aSKris KennawaySpecifies the port to connect to on the remote host. 109a8f6863aSKris KennawayNote that this option is written with a capital 110511b41d2SMark Murray.Sq P , 111511b41d2SMark Murraybecause 112511b41d2SMark Murray.Fl p 113511b41d2SMark Murrayis already reserved for preserving the times and modes of the file in 114511b41d2SMark Murray.Xr rcp 1 . 115b66f2d16SKris Kennaway.It Fl S Ar program 116b66f2d16SKris KennawayName of 117b66f2d16SKris Kennaway.Ar program 1185b9b2fafSBrian Feldmanto use for the encrypted connection. 1195b9b2fafSBrian FeldmanThe program must understand 120b66f2d16SKris Kennaway.Xr ssh 1 121b66f2d16SKris Kennawayoptions. 122ae1f160dSDag-Erling Smørgrav.It Fl o Ar ssh_option 123ae1f160dSDag-Erling SmørgravCan be used to pass options to 124ae1f160dSDag-Erling Smørgrav.Nm ssh 125545d5ecaSDag-Erling Smørgravin the format used in 126545d5ecaSDag-Erling Smørgrav.Xr ssh_config 5 . 127545d5ecaSDag-Erling SmørgravThis is useful for specifying options 128ae1f160dSDag-Erling Smørgravfor which there is no separate 129ae1f160dSDag-Erling Smørgrav.Nm scp 130d0c8c0bcSDag-Erling Smørgravcommand-line flag. 131d0c8c0bcSDag-Erling Smørgrav.It Fl 1 132d0c8c0bcSDag-Erling SmørgravForces 133d0c8c0bcSDag-Erling Smørgrav.Nm 134d0c8c0bcSDag-Erling Smørgravto use protocol 1. 135d0c8c0bcSDag-Erling Smørgrav.It Fl 2 136d0c8c0bcSDag-Erling SmørgravForces 137d0c8c0bcSDag-Erling Smørgrav.Nm 138d0c8c0bcSDag-Erling Smørgravto use protocol 2. 139511b41d2SMark Murray.It Fl 4 140511b41d2SMark MurrayForces 141511b41d2SMark Murray.Nm 142511b41d2SMark Murrayto use IPv4 addresses only. 143511b41d2SMark Murray.It Fl 6 144511b41d2SMark MurrayForces 145511b41d2SMark Murray.Nm 146511b41d2SMark Murrayto use IPv6 addresses only. 147b66f2d16SKris Kennaway.El 148ae1f160dSDag-Erling Smørgrav.Sh DIAGNOSTICS 149ae1f160dSDag-Erling Smørgrav.Nm 150ae1f160dSDag-Erling Smørgravexits with 0 on success or >0 if an error occurred. 151511b41d2SMark Murray.Sh AUTHORS 152511b41d2SMark MurrayTimo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi> 153511b41d2SMark Murray.Sh HISTORY 154511b41d2SMark Murray.Nm 155511b41d2SMark Murrayis based on the 156511b41d2SMark Murray.Xr rcp 1 157511b41d2SMark Murrayprogram in BSD source code from the Regents of the University of 158511b41d2SMark MurrayCalifornia. 159511b41d2SMark Murray.Sh SEE ALSO 160511b41d2SMark Murray.Xr rcp 1 , 1611e8db6e2SBrian Feldman.Xr sftp 1 , 162511b41d2SMark Murray.Xr ssh 1 , 163511b41d2SMark Murray.Xr ssh-add 1 , 164511b41d2SMark Murray.Xr ssh-agent 1 , 165511b41d2SMark Murray.Xr ssh-keygen 1 , 166ee21a45fSDag-Erling Smørgrav.Xr ssh_config 5 , 167511b41d2SMark Murray.Xr sshd 8 168