I'm connecting from a Linux server (Machine 1) to another Linux server (Machine 2) using PuTTY.
Using WinSCP, I have copied a zip
file from my hard disk in Windows to the Machine 1's home directory.
How can I copy this zip file from the Machine 1 to the Machine 2's build/test_builds directory?
Best Answer
I think this should work with every linux box with ssh enabled, maybe you'll need to enable secure copy (scp)
A better way to write this can be:
source and destination can be:
absolute or relative path to file (eg.
/tmp/foo.txt
or./foo.txt
)ssh file path (in the form ssh://[user]@[machine]/[path]
You can also perform copies between machine1 and machine2, while being on machine3 (given that you've got access - eg. a logon to each machine) via:
Hope this helps.