ssh remote copy?

Associate
Joined
21 Oct 2008
Posts
1,679
Location
Mooching... in your house
been playing with ssh and trying to get my head around something...

so i've logged in:

ssh username@ip,address

and i've navigated to a folder which contains a file i want...

how do i get it? i can see it there when i do an ls command, but i want to download it to the machine i'm on...

i've read about scp but that seems to be an all in one command where you need to use the ip address and login details again but surely once you are already logged in like in my above example, theres an easier way?
 
nono i understand the syntax for scp guys, what im asking is whether there is a way to copy from a server that you are already logged into without using the login details again if that makes sense...

logged in, navigated to the folder where the file is, now youre saying i have to use an scp command and include the user@server stuff again? despite the fact that i'm already in?

am i missing something here? i quite possibly am but using scp once logged in seems a bit, backward?
 
What if he's using a Mac?

*vomit*
I have it on good authority that you cry yourself to sleep each night cuz you don't have a mac.

when i started this thread i hadn't really got my head around some of the basic concepts of ssh, its all a lot clearer now ;)
 
Back
Top Bottom