|
|
This directory of Linux commands is from Linux in a Nutshell, 5th Edition. Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf. Buy it now, or read it online on Safari Bookshelf. scpscp [options] file1[...] file2 Securely copy files between hosts on a network, using ssh. Part of the OpenSSH suite of network tools. scp requests a password or passphrase if required. The transfer can be between two remote hosts. If more than one file is specified for file1, file2 should be a directory; otherwise, only the last file in the list is copied. file1 and file2 can be specified in any of the following ways: file host:file user@host:file The first format is used for a local file; a remote file can be specified in either of the other two formats. Options
ExampleCopy the local file $ scp user.server1.pub james@server2:/home/james/ |
|
|
|
|
|
Sponsored by: |