net.ssh.jsch
Class Session
java.lang.Object
   net.ssh.jsch.Session
net.ssh.jsch.Session
- All Implemented Interfaces: 
- java.lang.Runnable
- public class Session 
- extends java.lang.Object- implements java.lang.Runnable
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
connect
public void connect()
             throws JSchException
- 
 
- 
- Throws:
- JSchException
 
connect
public void connect(int connectTimeout)
             throws JSchException
- 
 
- 
- Throws:
- JSchException
 
rekey
public void rekey()
           throws java.lang.Exception
- 
 
- 
- Throws:
- java.lang.Exception
 
openChannel
public Channel openChannel(java.lang.String type)
                    throws JSchException
- 
 
- 
- Throws:
- JSchException
 
encode
public void encode(Packet packet)
            throws java.lang.Exception
- 
 
- 
- Throws:
- java.lang.Exception
 
read
public Buffer read(Buffer buf)
            throws java.lang.Exception
- 
 
- 
- Throws:
- java.lang.Exception
 
write
public void write(Packet packet,
                  Channel c,
                  int length)
           throws java.lang.Exception
- 
 
- 
- Throws:
- java.lang.Exception
 
write
public void write(Packet packet)
           throws java.lang.Exception
- 
 
- 
- Throws:
- java.lang.Exception
 
run
public void run()
- 
- Specified by:
- runin interface- java.lang.Runnable
 
- 
 
disconnect
public void disconnect()
- 
 
- 
 
setPortForwardingL
public void setPortForwardingL(int lport,
                               java.lang.String host,
                               int rport)
                        throws JSchException
- 
 
- 
- Throws:
- JSchException
 
setPortForwardingL
public void setPortForwardingL(java.lang.String boundaddress,
                               int lport,
                               java.lang.String host,
                               int rport)
                        throws JSchException
- 
 
- 
- Throws:
- JSchException
 
delPortForwardingL
public void delPortForwardingL(int lport)
                        throws JSchException
- 
 
- 
- Throws:
- JSchException
 
getPortForwardingL
public java.lang.String[] getPortForwardingL()
                                      throws JSchException
- 
 
- 
- Throws:
- JSchException
 
setPortForwardingR
public void setPortForwardingR(int rport,
                               java.lang.String host,
                               int lport)
                        throws JSchException
- 
 
- 
- Throws:
- JSchException
 
delPortForwardingR
public void delPortForwardingR(int rport)
                        throws JSchException
- 
 
- 
- Throws:
- JSchException
 
getConfig
public java.lang.String getConfig(java.lang.String name)
- 
 
- 
 
setProxy
public void setProxy(Proxy proxy)
- 
 
- 
 
setHost
public void setHost(java.lang.String host)
- 
 
- 
 
setPort
public void setPort(int port)
- 
 
- 
 
setPassword
public void setPassword(java.lang.String foo)
- 
 
- 
 
setUserInfo
public void setUserInfo(UserInfo userinfo)
- 
 
- 
 
setInputStream
public void setInputStream(java.io.InputStream in)
- 
 
- 
 
setOutputStream
public void setOutputStream(java.io.OutputStream out)
- 
 
- 
 
setX11Host
public void setX11Host(java.lang.String host)
- 
 
- 
 
setX11Port
public void setX11Port(int port)
- 
 
- 
 
setX11Cookie
public void setX11Cookie(java.lang.String cookie)
- 
 
- 
 
setConfig
public void setConfig(java.util.Properties foo)
- 
 
- 
 
setConfig
public void setConfig(java.util.Hashtable foo)
- 
 
- 
 
setSocketFactory
public void setSocketFactory(SocketFactory foo)
- 
 
- 
 
isConnected
public boolean isConnected()
- 
 
- 
 
getTimeout
public int getTimeout()
- 
 
- 
 
setTimeout
public void setTimeout(int foo)
                throws JSchException
- 
 
- 
- Throws:
- JSchException
 
getServerVersion
public java.lang.String getServerVersion()
- 
 
- 
 
getClientVersion
public java.lang.String getClientVersion()
- 
 
- 
 
setClientVersion
public void setClientVersion(java.lang.String cv)
- 
 
- 
 
getHostKey
public HostKey getHostKey()
- 
 
-