spaceboy99
01-28-2003, 09:11 PM
Hello, I was wondering if anyone could help me with a question about using SSH to tunnel FTP. I have already RTFMed, don't worry.
I have two machines -- asuka (ssh) and hal (ftp) -- sitting behind a Linksys router with (a) port 22 forwarded to a machine (asuka) and (b) tunnelling enabled.
I invoke a tunnel on my remote client, thusly:
ssh -L 2121:hal:21 [my-ip-deleted]
I get a login prompt OK, and log in. Then, in another terminal, I say:
ftp localhost 2121
And after puzzling for a few seconds, it gives me an ftp login prompt [the server identifies itself, etc]. I can login just fine, and I can do things like ascii and the server replies that it's now using ascii mode "Type A". But as soon as I try to execute an ls or anything else that requires data to come through, the ftp server barfs, saying that it can't understand the request ("500: EPSV not understood") and then trying passive mode and reporting "500: Illegal PORT command" before dying completely "421 Service Not Available...timed out".
What am I doing wrong? I'm trying FTP first because I thought it would be *easier* than X...argh.
spaceboy99
I have two machines -- asuka (ssh) and hal (ftp) -- sitting behind a Linksys router with (a) port 22 forwarded to a machine (asuka) and (b) tunnelling enabled.
I invoke a tunnel on my remote client, thusly:
ssh -L 2121:hal:21 [my-ip-deleted]
I get a login prompt OK, and log in. Then, in another terminal, I say:
ftp localhost 2121
And after puzzling for a few seconds, it gives me an ftp login prompt [the server identifies itself, etc]. I can login just fine, and I can do things like ascii and the server replies that it's now using ascii mode "Type A". But as soon as I try to execute an ls or anything else that requires data to come through, the ftp server barfs, saying that it can't understand the request ("500: EPSV not understood") and then trying passive mode and reporting "500: Illegal PORT command" before dying completely "421 Service Not Available...timed out".
What am I doing wrong? I'm trying FTP first because I thought it would be *easier* than X...argh.
spaceboy99