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.\" 121e8db6e2SBrian Feldman.\" $OpenBSD: scp.1,v 1.14 2001/02/04 11:11:53 djm 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 23b66f2d16SKris Kennaway.Op Fl S Ar program 24511b41d2SMark Murray.Op Fl P Ar port 25511b41d2SMark Murray.Op Fl c Ar cipher 26511b41d2SMark Murray.Op Fl i Ar identity_file 275b9b2fafSBrian Feldman.Op Fl o Ar option 28511b41d2SMark Murray.Sm off 29511b41d2SMark Murray.Oo 30511b41d2SMark Murray.Op Ar user@ 31511b41d2SMark Murray.Ar host1 No : 32511b41d2SMark Murray.Oc Ns Ar file1 33511b41d2SMark Murray.Sm on 34511b41d2SMark Murray.Op Ar ... 35511b41d2SMark Murray.Sm off 36511b41d2SMark Murray.Oo 37511b41d2SMark Murray.Op Ar user@ 38511b41d2SMark Murray.Ar host2 No : 39511b41d2SMark Murray.Oc Ar file2 40511b41d2SMark Murray.Sm on 41511b41d2SMark Murray.Sh DESCRIPTION 42511b41d2SMark Murray.Nm 43a8f6863aSKris Kennawaycopies files between hosts on a network. 44a8f6863aSKris KennawayIt uses 45511b41d2SMark Murray.Xr ssh 1 46511b41d2SMark Murrayfor data transfer, and uses the same authentication and provides the 47511b41d2SMark Murraysame security as 48511b41d2SMark Murray.Xr ssh 1 . 49511b41d2SMark MurrayUnlike 50511b41d2SMark Murray.Xr rcp 1 , 51511b41d2SMark Murray.Nm 52511b41d2SMark Murraywill ask for passwords or passphrases if they are needed for 53511b41d2SMark Murrayauthentication. 54511b41d2SMark Murray.Pp 55511b41d2SMark MurrayAny file name may contain a host and user specification to indicate 56a8f6863aSKris Kennawaythat the file is to be copied to/from that host. 57a8f6863aSKris KennawayCopies between two remote hosts are permitted. 58511b41d2SMark Murray.Pp 59511b41d2SMark MurrayThe options are as follows: 60511b41d2SMark Murray.Bl -tag -width Ds 61511b41d2SMark Murray.It Fl c Ar cipher 62a8f6863aSKris KennawaySelects the cipher to use for encrypting the data transfer. 63a8f6863aSKris KennawayThis option is directly passed to 64511b41d2SMark Murray.Xr ssh 1 . 65511b41d2SMark Murray.It Fl i Ar identity_file 66511b41d2SMark MurraySelects the file from which the identity (private key) for RSA 67a8f6863aSKris Kennawayauthentication is read. 68a8f6863aSKris KennawayThis option is directly passed to 69511b41d2SMark Murray.Xr ssh 1 . 70511b41d2SMark Murray.It Fl p 71511b41d2SMark MurrayPreserves modification times, access times, and modes from the 72511b41d2SMark Murrayoriginal file. 73511b41d2SMark Murray.It Fl r 74511b41d2SMark MurrayRecursively copy entire directories. 75511b41d2SMark Murray.It Fl v 76a8f6863aSKris KennawayVerbose mode. 77a8f6863aSKris KennawayCauses 78511b41d2SMark Murray.Nm 79511b41d2SMark Murrayand 80511b41d2SMark Murray.Xr ssh 1 81a8f6863aSKris Kennawayto print debugging messages about their progress. 82a8f6863aSKris KennawayThis is helpful in 83511b41d2SMark Murraydebugging connection, authentication, and configuration problems. 84511b41d2SMark Murray.It Fl B 85511b41d2SMark MurraySelects batch mode (prevents asking for passwords or passphrases). 86511b41d2SMark Murray.It Fl q 87511b41d2SMark MurrayDisables the progress meter. 88511b41d2SMark Murray.It Fl C 89a8f6863aSKris KennawayCompression enable. 90a8f6863aSKris KennawayPasses the 91511b41d2SMark Murray.Fl C 92511b41d2SMark Murrayflag to 93511b41d2SMark Murray.Xr ssh 1 94511b41d2SMark Murrayto enable compression. 95511b41d2SMark Murray.It Fl P Ar port 96a8f6863aSKris KennawaySpecifies the port to connect to on the remote host. 97a8f6863aSKris KennawayNote that this option is written with a capital 98511b41d2SMark Murray.Sq P , 99511b41d2SMark Murraybecause 100511b41d2SMark Murray.Fl p 101511b41d2SMark Murrayis already reserved for preserving the times and modes of the file in 102511b41d2SMark Murray.Xr rcp 1 . 103b66f2d16SKris Kennaway.It Fl S Ar program 104b66f2d16SKris KennawayName of 105b66f2d16SKris Kennaway.Ar program 1065b9b2fafSBrian Feldmanto use for the encrypted connection. 1075b9b2fafSBrian FeldmanThe program must understand 108b66f2d16SKris Kennaway.Xr ssh 1 109b66f2d16SKris Kennawayoptions. 1105b9b2fafSBrian Feldman.It Fl o Ar option 1115b9b2fafSBrian FeldmanThe given option is directly passed to 1125b9b2fafSBrian Feldman.Xr ssh 1 . 113511b41d2SMark Murray.It Fl 4 114511b41d2SMark MurrayForces 115511b41d2SMark Murray.Nm 116511b41d2SMark Murrayto use IPv4 addresses only. 117511b41d2SMark Murray.It Fl 6 118511b41d2SMark MurrayForces 119511b41d2SMark Murray.Nm 120511b41d2SMark Murrayto use IPv6 addresses only. 121b66f2d16SKris Kennaway.El 122511b41d2SMark Murray.Sh AUTHORS 123511b41d2SMark MurrayTimo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi> 124511b41d2SMark Murray.Sh HISTORY 125511b41d2SMark Murray.Nm 126511b41d2SMark Murrayis based on the 127511b41d2SMark Murray.Xr rcp 1 128511b41d2SMark Murrayprogram in BSD source code from the Regents of the University of 129511b41d2SMark MurrayCalifornia. 130511b41d2SMark Murray.Sh SEE ALSO 131511b41d2SMark Murray.Xr rcp 1 , 1321e8db6e2SBrian Feldman.Xr sftp 1 , 133511b41d2SMark Murray.Xr ssh 1 , 134511b41d2SMark Murray.Xr ssh-add 1 , 135511b41d2SMark Murray.Xr ssh-agent 1 , 136511b41d2SMark Murray.Xr ssh-keygen 1 , 137511b41d2SMark Murray.Xr sshd 8 138