org.gridkit.vicluster.telecontrol.ssh
Class SimpleSshSessionProvider
java.lang.Object
org.gridkit.vicluster.telecontrol.ssh.SimpleSshSessionProvider
- All Implemented Interfaces:
- SshSessionFactory
public class SimpleSshSessionProvider
- extends Object
- implements SshSessionFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSshSessionProvider
public SimpleSshSessionProvider()
SimpleSshSessionProvider
public SimpleSshSessionProvider(JSch jsch)
setUser
public void setUser(String user)
setPassword
public void setPassword(String password)
setKeyFile
public void setKeyFile(String fileName)
setConfig
public void setConfig(String key,
String value)
getSession
public Session getSession(String host,
String account)
throws JSchException
- Specified by:
getSession in interface SshSessionFactory
- Throws:
JSchException
Copyright © 2017. All Rights Reserved.