Easily find issues by searching: #<Issue ID>
Example: #1832
Easily find members by searching in: <username>, <first name> and <last name>.
Example: Search smith, will return results smith and adamsmith
Aqua Data Studio / nhilam |
Follow
827
|
\scp | |
Copies files between two hosts. | |
Syntax | |
\scp [-H known_hosts] [-i identity_file] [-P port] [-t] [[user@]host1:]fromFile1 [[[user@]host1:]fromFile2 ...] [[user@]host2:]toFile |
|
Description | |
\scp copies files between the local host and a remote host. File names may contain a user and host specification to indicate that the file is to be copied to/from that host; current user is assumed if the user portion is omitted. |
|
Options | |
-H known_hosts Sets the path to the file that has the identities of all known hosts, defaults to user-home-directory/.ssh/known_hosts. |
|
-i identity_file Selects the file from which the identity (private key) for RSA authentication is read. |
|
-P port Specifies the port to connect to on the remote host, defaults to 22. |
|
-t Trusts hosts whose identity is unknown. |
|
Example | |
To copy a local file in the working directory to a remote directory: \scp fromFile username@hostname:~/toDirectory |
|
To copy a local file to a remote directory with a different file name: \scp /tmp/fromFile username@hostname:/tmp/newFileName |
|
To copy local files to a remote directory: \scp /tmp/fromFile1 /tmp/fromFile2 username@hostname:/tmp |
|
To copy a local directory to a remote directory, note that the /tmp/dirName directory on the remote machine needs to be created beforehand: \scp /tmp/dirName username@hostname:/tmp/dirName |
|
To copy a remote file to a local directory: \scp username@hostname:/tmp/fromFile /tmp/toDirectory |
|
To copy a remote directory to a local directory, note that the trailing asterisk after the fromDirectory is required in order for directory copy to work: \scp username@hostname:/tmp/fromDirectory/* /tmp/toDirectory |
About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017