Section: SSH (1)
Updated: November 8, 1995
SSH man page index Return to SSH FAQ



scp - secure copy (remote file copy program)



scp[-aAqQprvBCL1][-S path-to-ssh][-o ssh-options][-P port][-c cipher][-i identity]



Scpcopies files between hosts on a network. It usessshfor data transfer, and uses the same authentication and provides thesame security asssh.Unlikercp,scpwill ask for passwords or passphrases if they are needed forauthentication.

Any file name may contain a host and user specification to indicatethat the file is to be copied to/from that host. Copies between tworemote hosts are permitted.



Turn on statistics display for each file.
Turn off statistics display for each file.
-c cipher
Selects the cipher to use for encrypting the data transfer. Thisoption is directly passed tossh.
-i identity_file
Selects the file from which the identity (private key) for RSAauthentication is read. This option is directly passed tossh.
Use non privileged port. With this you cannot userhosts or rsarhosts authentications, but it can beused to bypass some firewalls that dont allow privilegedsource ports to pass. Same as saying "-o UsePriviledgePort=no"or -P to ssh; -L is used due to exhaustion of suitable letters.
Force scp to use command "scp1" on the remote side instead of "scp".This may be necessary in some situations, if the remote system has"scp2" symlinked to "scp".
-o ssh-options
Ssh options passed to ssh.
Preserves modification times, access times, and modes from theoriginal file.
Turn off statistics display.
Turn on statistics display.
Recursively copy entire directories.
Verbose mode. Causesscpand sshto print debugging messages about their progress. This is helpful indebugging connection, authentication, and configuration problems.
Selects batch mode (prevents asking for passwords or passphrases).
Compression enable. Passes the -C flag tosshto enable compression.
-P port
Specifies the port to connect to on the remote host. Note that thisoption is written with a capital P, because -p is already reserved forpreserving the times and modes of the file in rcp.
-S path-to-ssh
Specifies the path to ssh program.



You can turn scp statistics on or off by settingSSH_SCP_STATSorSSH_NO_SCP_STATSenvironment variables. To turn on or off scp statistics for each file,use SSH_ALL_SCP_STATSorSSH_NO_ALL_SCP_STATSenvironment variables. The default value of the statistics can be setwhen the ssh is configured. Next the scp checks those environmentvariables and after that command line options.



Timo Rinne <> and Tatu Ylonen <>



Scpis based on thercpprogram in BSD source code from the Regents of the University ofCalifornia.



ssh(1),sshd(8), ssh-keygen(1), ssh-agent(1),ssh-add(1), rcp(1)

This document was created by man2html,using the manual pages.
Time: 05:39:46 GMT, September 09, 1999