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.\" 12a8f6863aSKris Kennaway.\" $Id: scp.1,v 1.6 2000/03/23 21:10:09 aaron 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 22511b41d2SMark Murray.Op Fl pqrvC46 23511b41d2SMark Murray.Op Fl P Ar port 24511b41d2SMark Murray.Op Fl c Ar cipher 25511b41d2SMark Murray.Op Fl i Ar identity_file 26511b41d2SMark Murray.Sm off 27511b41d2SMark Murray.Oo 28511b41d2SMark Murray.Op Ar user@ 29511b41d2SMark Murray.Ar host1 No : 30511b41d2SMark Murray.Oc Ns Ar file1 31511b41d2SMark Murray.Sm on 32511b41d2SMark Murray.Op Ar ... 33511b41d2SMark Murray.Sm off 34511b41d2SMark Murray.Oo 35511b41d2SMark Murray.Op Ar user@ 36511b41d2SMark Murray.Ar host2 No : 37511b41d2SMark Murray.Oc Ar file2 38511b41d2SMark Murray.Sm on 39511b41d2SMark Murray.Sh DESCRIPTION 40511b41d2SMark Murray.Nm 41a8f6863aSKris Kennawaycopies files between hosts on a network. 42a8f6863aSKris KennawayIt uses 43511b41d2SMark Murray.Xr ssh 1 44511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the 45511b41d2SMark Murraysame security as 46511b41d2SMark Murray.Xr ssh 1 . 47511b41d2SMark MurrayUnlike 48511b41d2SMark Murray.Xr rcp 1 , 49511b41d2SMark Murray.Nm 50511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for 51511b41d2SMark Murrayauthentication. 52511b41d2SMark Murray.Pp 53511b41d2SMark MurrayAny file name may contain a host and user specification to indicate 54a8f6863aSKris Kennawaythat the file is to be copied to/from that host. 55a8f6863aSKris KennawayCopies between two remote hosts are permitted. 56511b41d2SMark Murray.Pp 57511b41d2SMark MurrayThe options are as follows: 58511b41d2SMark Murray.Bl -tag -width Ds 59511b41d2SMark Murray.It Fl c Ar cipher 60a8f6863aSKris KennawaySelects the cipher to use for encrypting the data transfer. 61a8f6863aSKris KennawayThis option is directly passed to 62511b41d2SMark Murray.Xr ssh 1 . 63511b41d2SMark Murray.It Fl i Ar identity_file 64511b41d2SMark MurraySelects the file from which the identity (private key) for RSA 65a8f6863aSKris Kennawayauthentication is read. 66a8f6863aSKris KennawayThis option is directly passed to 67511b41d2SMark Murray.Xr ssh 1 . 68511b41d2SMark Murray.It Fl p 69511b41d2SMark MurrayPreserves modification times, access times, and modes from the 70511b41d2SMark Murrayoriginal file. 71511b41d2SMark Murray.It Fl r 72511b41d2SMark MurrayRecursively copy entire directories. 73511b41d2SMark Murray.It Fl v 74a8f6863aSKris KennawayVerbose mode. 75a8f6863aSKris KennawayCauses 76511b41d2SMark Murray.Nm 77511b41d2SMark Murrayand 78511b41d2SMark Murray.Xr ssh 1 79a8f6863aSKris Kennawayto print debugging messages about their progress. 80a8f6863aSKris KennawayThis is helpful in 81511b41d2SMark Murraydebugging connection, authentication, and configuration problems. 82511b41d2SMark Murray.It Fl B 83511b41d2SMark MurraySelects batch mode (prevents asking for passwords or passphrases). 84511b41d2SMark Murray.It Fl q 85511b41d2SMark MurrayDisables the progress meter. 86511b41d2SMark Murray.It Fl C 87a8f6863aSKris KennawayCompression enable. 88a8f6863aSKris KennawayPasses the 89511b41d2SMark Murray.Fl C 90511b41d2SMark Murrayflag to 91511b41d2SMark Murray.Xr ssh 1 92511b41d2SMark Murrayto enable compression. 93511b41d2SMark Murray.It Fl P Ar port 94a8f6863aSKris KennawaySpecifies the port to connect to on the remote host. 95a8f6863aSKris KennawayNote that this option is written with a capital 96511b41d2SMark Murray.Sq P , 97511b41d2SMark Murraybecause 98511b41d2SMark Murray.Fl p 99511b41d2SMark Murrayis already reserved for preserving the times and modes of the file in 100511b41d2SMark Murray.Xr rcp 1 . 101511b41d2SMark Murray.It Fl 4 102511b41d2SMark MurrayForces 103511b41d2SMark Murray.Nm 104511b41d2SMark Murrayto use IPv4 addresses only. 105511b41d2SMark Murray.It Fl 6 106511b41d2SMark MurrayForces 107511b41d2SMark Murray.Nm 108511b41d2SMark Murrayto use IPv6 addresses only. 109511b41d2SMark Murray.Sh AUTHORS 110511b41d2SMark MurrayTimo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi> 111511b41d2SMark Murray.Sh HISTORY 112511b41d2SMark Murray.Nm 113511b41d2SMark Murrayis based on the 114511b41d2SMark Murray.Xr rcp 1 115511b41d2SMark Murrayprogram in BSD source code from the Regents of the University of 116511b41d2SMark MurrayCalifornia. 117511b41d2SMark Murray.Sh SEE ALSO 118511b41d2SMark Murray.Xr rcp 1 , 119511b41d2SMark Murray.Xr ssh 1 , 120511b41d2SMark Murray.Xr ssh-add 1 , 121511b41d2SMark Murray.Xr ssh-agent 1 , 122511b41d2SMark Murray.Xr ssh-keygen 1 , 123511b41d2SMark Murray.Xr sshd 8 124