I am using a Linux (CentOS) machine, and I have already connected to another system using SSH.
Now, my question is: How can I copy files from one system to another system?
Suppose, in my environment, I have two system like System A and System B. I'm using System A machine and some other using System B machine.
How can I copy a file from System B to System A?
And, copy a file from System A to System B?
scpto be a cumber stone often. If it could suite your needs, try this out linuxjournal.com/article/8904 It mounts the remote file system locally.dir/on remote machine usingssh:tar -c dir/ | gzip | gpg -c | ssh user@remote 'dd of=dir.tar.gz.gpg'$wget -r --level=9 --no-parent --reject "index.html*" ftp://<USERID>:<PASSWORD>@<MACHINE-NAME>/path/toReference1 Reference2scp; for that onescpis fine and most easy way as answer, so mods please remove duplicate flag as if somebody will go to other one, most useful answer will be missed out.