Hi all,
I could not test some of your suggestions as i ran into an other problem. I'm using SFTP to read files from the fileserver (not ftp. My apologies) and the license for using it expired. Now I have to replace sftp with ftp. I would like to know how do I replace sftp with ftp. The code to establish sftp connection is shown below.
import com.jscape.inet.sftp.*;
import com.jscape.inet.ssh.util.SshParameters;
public class SftpHandler {
public static final String SFTP_HOST = "aaa.org";
public static final String SFTP_USERID = "john";
public static final String SFTP_PASSWORD = "smith";
public SftpHandler() {
}
public static Sftp getSftpConnection() throws SftpException {
SshParameters params = new SshParameters(SFTP_HOST,SFTP_USERID,SFTP_PASSWORD);
Sftp sftp = new Sftp(params);
sftp.connect();
return sftp;
}
I would like to know how to use ftp just like sftp above, but Im quite unsure whether ftp is also licensed.
Thanks,
divyaa