Package uk.ac.dl.escience.vfs.util

Examples of uk.ac.dl.escience.vfs.util.SshTrustAllHostsUserInfo


        // specify the private key - but how do you specify the decryption password for the private key ??
        //java.io.File[] privateKeys = new java.io.File[1];
        //privateKeys[0] = new java.io.File("/home/djm76/.ssh/id_dsa");
        //SftpFileSystemConfigBuilder.getInstance().setIdentities(opts, privateKeys);
        //SftpFileSystemConfigBuilder.getInstance().setKnownHosts(opts, new java.io.File("/home/djm76/.ssh/known_hosts"));
        SshTrustAllHostsUserInfo ui = new SshTrustAllHostsUserInfo();
        ui.setPassword(this.sftpPassword);
        ui.setPassphrase(this.sftpPassword);
        FileSystemOptions defaultOpts = new FileSystemOptions();
        SftpFileSystemConfigBuilder.getInstance().setUserInfo(defaultOpts, ui);

        // timeout (in millisecs). Default value for sftp is zero which is interpreted as an infinite timeout (jsch uses java.net.Socket)
        if(this.sftpTimeoutMilliSecs != null){
View Full Code Here


        // specify the private key - but how do you specify the decryption password for the private key ??
        //java.io.File[] privateKeys = new java.io.File[1];
        //privateKeys[0] = new java.io.File("/home/djm76/.ssh/id_dsa");
        //SftpFileSystemConfigBuilder.getInstance().setIdentities(opts, privateKeys);
        //SftpFileSystemConfigBuilder.getInstance().setKnownHosts(opts, new java.io.File("/home/djm76/.ssh/known_hosts"));
        SshTrustAllHostsUserInfo ui = new SshTrustAllHostsUserInfo();
        ui.setPassword(this.sftpPassword);
        ui.setPassphrase(this.sftpPassword);
        FileSystemOptions defaultOpts = new FileSystemOptions();
        SftpFileSystemConfigBuilder.getInstance().setUserInfo(defaultOpts, ui);
        // timeout
        //SftpFileSystemConfigBuilder.getInstance().setTimeout(defaultOpts, 100);
        // userDirIsRoot
View Full Code Here

TOP

Related Classes of uk.ac.dl.escience.vfs.util.SshTrustAllHostsUserInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.