SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear Slackers, this is not Slackware-specific question, but I am sure
somebody will be able to get me the answer.
So, let my machine be A, a Linux Server be B, and an ftp server be C.
Code:
A - B - C,
ssh ftp
A connects to B via ssh, and B to C via ftp. A cannot directly connect to C.
Can I download a file from C directly to A without saving it on B's hard drive?
Sorry I'm not a slackware fan, hope it's OK answering you question...
FTP is hard to tunnel as it's an archaic protocol, but using ssh as a SOCKS proxy you should be OK. There's a guide here, that I found on google in 5 seconds
Thank You for the replies.
@Richard Cranium: Unfortunately there is no lftp on machine B, so I think there is no way to get this method to work for my problem
@acid_kewpie: I read the tutorial, but I can only use the command line. And the explanation for the command line there is vague, could you provide some sample commands?
you install this, and mount a folder on system A from system B... then you ftp from C to that folder on B (which really pushes it to A as that's where the folder is)
not sure if that is exactly what you were going for, but I've been using this to push files all over the network here without needing to do more than mount the folders and cp.
If the ftp client on B can write to stdout you could probably do the equivalent of the ssh tar pipe
ssh user@B 'tar zcf - stuff' | tar zxf -
from A, but instead of tar, run the remote ftp process and pipe it a local cat or something pointing into a file, or leave the tar's and add an ftp in the remote command in front of and piping into the tar
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.