Package com.alexecollins.vbox.core.ssh

Examples of com.alexecollins.vbox.core.ssh.PresetUserInfo


  public Void call() throws Exception {
    final JSch jsch = new JSch();
    final Profile.SSH x = box.getProfile().getSSH();
    final Session session = jsch.getSession(x.getAuth().getUsername(), x.getHostname(), x.getPort());
    session.setUserInfo(new PresetUserInfo(x.getAuth().getPassword(), null));
    session.connect(30000);
    final Channel channel=session.openChannel("shell");
    channel.setInputStream(System.in);
    channel.setOutputStream(System.out);
    channel.connect(3000);
View Full Code Here

TOP

Related Classes of com.alexecollins.vbox.core.ssh.PresetUserInfo

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.