Editing Scp
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
[[wikipedia:Secure copy]] (<code>scp</code>) is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. scp implements a [[progress]] bar to estimate transfers. | [[wikipedia:Secure copy]] (<code>scp</code>) is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. scp implements a [[progress]] bar to estimate transfers. | ||
http://man7.org/linux/man-pages/man1/scp.1.html | http://man7.org/linux/man-pages/man1/scp.1.html | ||
− | + | == Example == | |
− | + | scp USERNAME@SERVER:/tmp/FILE ./ | |
− | |||
− | |||
− | |||
− | == | ||
− | scp | ||
− | |||
− | |||
− | |||
− | |||
USERNAME@SERVER's password: | USERNAME@SERVER's password: | ||
Could not chdir to home directory /home/USERNAME: No such file or directory | Could not chdir to home directory /home/USERNAME: No such file or directory | ||
protocol error: mtime.sec not present | protocol error: mtime.sec not present | ||
− | + | scp -r .../... | |
− | |||
− | |||
− | |||
− | |||
== Security == | == Security == | ||
Line 35: | Line 21: | ||
* Review security advisories related to <code>scp</code>: [[CVE]]-2019-6111<ref>https://nvd.nist.gov/vuln/detail/CVE-2019-6111</ref> related to <code>[[scp]]</code> tool and protocol allowing to overwrite arbitrary files in the scp client target directory | * Review security advisories related to <code>scp</code>: [[CVE]]-2019-6111<ref>https://nvd.nist.gov/vuln/detail/CVE-2019-6111</ref> related to <code>[[scp]]</code> tool and protocol allowing to overwrite arbitrary files in the scp client target directory | ||
* <code>[[pv]] </dev/zero | ssh REMOTE_SERVER 'cat >/dev/null'</code> | * <code>[[pv]] </dev/zero | ssh REMOTE_SERVER 'cat >/dev/null'</code> | ||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
Line 45: | Line 28: | ||
* [[magic-wormhole]] | * [[magic-wormhole]] | ||
* [[progress]] | * [[progress]] | ||
− | * <code>[[scp -3]]</code> | + | * <code>[[scp -3]]</code> -3 Copies between two remote hosts are transferred through the local host. Without this option the data is copied directly between the two remote hosts. Note that this option disables the progress meter. |
− | * [[Resume transmissions | + | * [[Resume transmissions]] |
− | |||
− | |||
== See also == | == See also == |
Advertising: