💾 Archived View for freeshell.de › tldr › scp.gmi captured on 2022-06-04 at 00:26:34. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Secure copy.
Copy files between hosts using Secure Copy Protocol over SSH.
scp {path/to/local_file} {remote_host}:{path/to/remote_file}
scp -P {port} {path/to/local_file} {remote_host}:{path/to/remote_file}
scp {remote_host}:{path/to/remote_file} {path/to/local_directory}
scp -r {remote_host}:{path/to/remote_directory} {path/to/local_directory}
scp -3 {host1}:{path/to/remote_file} {host2}:{path/to/remote_directory}
scp {path/to/local_file} {remote_username}@{remote_host}:{path/to/remote_directory}
scp -i {~/.ssh/private_key} {local_file} {remote_host}:{/path/remote_file}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).