Scp
Considering two system: System A
and System B
. You are logged inside one of them.
Consider this rule for copying file(s) between ssh
scp <source> <destination>
The system you are NOT logged into will prepend username@system_name:
to the absolute path
So If you want to copy some files System B ⇒ System A
while you are logged in System B, you have to prepend in the <destination>
parameter
thus resulting in a command like this
scp /path/to/file username@system_name:/path/to/destination
Of course, if you want to copy an entire folder, just use the -r flag
scp -r /path/to/folder username@system_name:/path/to/destination
Have a question or feedback?
Found an issue I haven't covered?
Need clarification on steps?
Want to share your experience?
Please leave a comment below!