Code:
root:# ls
CIMG9974.jpg CIMG9976.jpg CIMG9978.jpg CIMG9980.jpg CIMG9982.jpg
CIMG9975.jpg CIMG9977.jpg CIMG9979.jpg CIMG9981.jpg
vector://home/john/Pictures
root:# scp -r root@192.168.1.6:/home/john/Pictures .
root@192.168.1.6's password:
scp: /home/john/Pictures/
CIMG9979.jpg 100% 1883KB 1.8MB/s 00:00
CIMG9980.jpg 100% 1990KB 1.9MB/s 00:01
CIMG9981.jpg 100% 2029KB 2.0MB/s 00:00
CIMG9982.jpg 100% 2091KB 2.0MB/s 00:01
CIMG9974.jpg 100% 1989KB 1.9MB/s 00:01
CIMG9975.jpg 100% 2075KB 2.0MB/s 00:00
CIMG9976.jpg 100% 2069KB 2.0MB/s 00:01
CIMG9977.jpg 100% 1985KB 1.9MB/s 00:01
CIMG9978.jpg 100% 2035KB 2.0MB/s 00:00
vector://home/john/Pictures
root:# ls
CIMG9974.jpg CIMG9976.jpg CIMG9978.jpg CIMG9980.jpg CIMG9982.jpg
CIMG9975.jpg CIMG9977.jpg CIMG9979.jpg CIMG9981.jpg Pictures/
Alright, long time lurker and first time poster here. I've had 99.9% of my *nix questions answered by this website, so I figured it might be helpful to come in and ask about this issue.
As you can probably tell from the output above, I'm trying to perform a recursive copy of all the files (images) contained in /home/john/Pictures to "." (which I'm assuming is the "current local directory"). I can't wrap my head around the man pages (all the brackets are confusing the crap out of me!).
Basically, I run the command and it obviously works... but it performs the copy to the current REMOTE directory. So what parameter(s) do I need to use in order to copy to my LOCAL machine?
Thanks a TON, guys! Any help is appreciated!!
EDIT: Also, I've tried to use the follow command to no avail. The prompt hangs and I have to CTRL-Z out of it.
Code:
scp -r /home/john/Pictures dividebyzer0@192.168.1.5:/home/dividebyzer0/Desktop
Where dividebyzer0@192.168.1.5 is my local machine (the one I'm using/initiating the SSH with)
It is my understanding that SCP should work as follows...
Code:
scp foobar.txt your_username@remotehost:/some/remote/directory
Although, when I try this it will still copy the files on the remote machine (to itself, basically). So it's the equivalent of running "cp".