This question already has an answer here:
I'm trying to download a file from a linux server i'm already connected to. I know you can use scp to connect to and pull down a file from a host, but that requires still being on local. I could scp the file back to my local machine, but the local machine is not accessible from the host.
Is there a way to just pull down the file you are already looking at? Something like:
From the host
$ download <THEFILE>
This would really just be more convenient than having to go back out to my local terminal than scp the file. Instead you could just say "grab this one" Done.
I suppose the client would have to know what to do with the file. And i'm pretty sure "terminal.app" does not have a default downloads folder. So perhaps this is not possible.
BTW I'm connect from a mac to Debian.