@@ -0,0 +1,1249 @@
+import com.jcraft.jsch.Channel;%0Aimport com.jcraft.jsch.ChannelSftp;%0Aimport com.jcraft.jsch.JSch;%0Aimport com.jcraft.jsch.JSchException;%0Aimport com.jcraft.jsch.Session;%0Aimport com.jcraft.jsch.SftpException;%0Aimport java.io.PrintStream;%0Aimport org.apache.commons.net.ftp.FTPClient;%0A%0Apublic class FTPConnectDemo %7B%0A    private static final int FTP_TIMEOUT = 3000;%0A%0A    public static void main(String%5B%5D args) %7B%0A        FTPClient ftpClient = new FTPClient();%0A        String user = %22pmudgal%22;%0A        String host = %22linuxlab.cs.pdx.edu%22;%0A        int port = 22;%0A        String pass = %22%22; //Pass the password here%0A        try %7B%0A            JSch jsch = new JSch();%0A            Session session = jsch.getSession(user, host, port);%0A            session.setConfig(%22StrictHostKeyChecking%22, %22no%22);%0A            session.setPassword(pass);%0A            session.connect(3000);%0A            Channel channel = session.openChannel(%22sftp%22);%0A            ChannelSftp sftp = (ChannelSftp)channel;%0A            sftp.connect(3000);%0A            sftp.mkdir(%22testing%22);%0A            System.out.println(%22Connected%22);%0A        %7D%0A        catch (JSchException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        catch (SftpException e) %7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%7D

Test Java Code