cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

os:linux:command:scp.html



Linux Commands#network

How to use scp command in Linux (with examples)

secure copy (remote file copy program)



scp options

# scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
#
# man scp
SYNOPSIS
     scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port]
         [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2


     The options are as follows:
     -p      Preserves modification times, access times, and modes from the original file.

     -r      Recursively copy entire directories.  Note that scp follows symbolic links encountered in the tree traver-sal.

     -i identity_file
             Selects the file from which the identity (private key) for public key authentication is read.

     -l limit
             Limits the used bandwidth, specified in Kbit/s.


Examples

scp test.tar.gz   user1@192.168.0.10:/tmp
scp -rp /tmp/test1/     user1@192.168.0.10:/tmp/test2/



os/linux/command/scp.html.txt ยท Last modified: 2017/05/14 by admin

Page Tools