Alex,
You will probably find that few FTP servers honour the PASV :port
command because of security implications. If you are admin of the FTP
server you may be able to find a configuration that allows this to
happen. Your best bet is to use SFTP as this works seemlessly over the
SSH tunnel. A good SFTP client for windows is WinSCP, or just use the
OpenSSH SFTP CLI.
Mike
alex_777 wrote:
> hello!
>
> I use putty to tunnel ftp over ssh to a remote server. while
> http-tunneling works fine, ftp makes following problems:
>
> STATUS:> Resolving host name localhost.
> STATUS:> Host name localhost resolved: ip = 127.0.0.1.
> STATUS:> Getting listing "/www"...
> STATUS:> Connecting to ftp server localhost:4444 (ip = 127.0.0.1)...
> STATUS:> Socket connected. Waiting for welcome message...
> 220 Spot ist online und bereit f�r neuen Wahnsinn...
> COMMAND:> USER username
> 331 Password required for intranet.
> COMMAND:> PASS password
> 230 Anonymous access granted, restrictions apply.
> STATUS:> Login successful.
> COMMAND:> PWD
> 257 "/" is current directory.
> STATUS:> Home directory: /
> COMMAND:> CWD /www
> 250 CWD command successful.
> COMMAND:> PWD
> 257 "/www" is current directory.
> COMMAND:> PASV
> 227 Entering Passive Mode (xx,xx,xxx,xxx,xxx,xxx).
> COMMAND:> LIST
> STATUS:> Connecting ftp data socket xxx.xxx.xxx.xxx:3969...
> ERROR:> Can't connect to remote server. Socket error = #10060.
> ERROR:> Failed to establish data socket.
>
> I allready tried several ftp-clients (all in passive mode) and ports.
> please help
>
> thx alex