Package com.mindtree.techworks.infix.pluginscommon.test.ssh.beans

Examples of com.mindtree.techworks.infix.pluginscommon.test.ssh.beans.ServerConfiguration


    marshall(platformConfig, "platform.xml");
  }

  private void createServerConfig () throws IOException {
    ServerConfiguration serverConfig = new ServerConfiguration();

    ServerConfiguration.ServerHostKey hostKey = new ServerConfiguration.ServerHostKey();
    hostKey.setPrivateKeyFile(configDir.getRoot().getAbsolutePath().replace('\\', '/') + "/test-dsa.key");
    serverConfig.addServerHostKey(hostKey);

    serverConfig.setPort(port);
    serverConfig.setListenAddress(bindAddress);
    serverConfig.setMaxConnections(3);
    serverConfig.addAllowedAuthentication("password");
    serverConfig.addAllowedAuthentication("keyboard-interactive");

    ServerConfiguration.Subsystem subsystem = new ServerConfiguration.Subsystem();
    subsystem.setName("sftp");
    subsystem.setType("class");
    subsystem.setProvider(com.sshtools.daemon.sftp.SftpSubsystemServer.class.getName());
    serverConfig.addSubsystem(subsystem);

    marshall(serverConfig, "server.xml");
  }
View Full Code Here

TOP

Related Classes of com.mindtree.techworks.infix.pluginscommon.test.ssh.beans.ServerConfiguration

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.