Hello,

I try to do a port forwarding using ssh client (putty) and the commonsnet jarkarta API 
in order to do a secure FTP transfert.
My problem is I cannot  "store" or "retreive" a file, what is the way to do this kind 
of transfert?

Concerning the port forwarding my configuration is the following:
I set a local port on my FTP client , eg.10009 and it corresponds to the port 21 of my 
remote machine (the server).


The error I have got is:
220 JFDF FTP Tests Server
Connected to me.
USER JFDFTests-srv1
331 Password required for JFDFTests-srv1.
PASS xxxx
230 User JFDFTests-srv1 logged in.
SYST
215 UNIX Type: L8
Remote system is UNIX Type: L8
PASV
227 Entering Passive Mode (199,0,0,64,84,79).
PORT 199,0,0,57,8,34
200 Port command successful.
STOR sshftptest.txt
150 Opening data connection for sshftptest.txt.
java.io.IOException: Host attempting data connection 199.0.0.64 is not same as server 
199.0.0.57
        at 
org.apache.commons.net.ftp.FTPClient.__openDataConnection(FTPClient.java:409)
        at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:427)
        at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1283)
        at commonnetssh.FtpSSHClient.main(FtpSSHClient.java:140)

Thanks for help
------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to