com.mindbright.ssh
Interface SSHClientUser

All Known Implementing Classes:
SSH1Cisco, SSH1Example, SSHClientUserAdaptor, SSHConsoleClient, SSHPropertyHandler, SSHSCPClient

public interface SSHClientUser

This interface is used when explicitly connection with the version 1 protocol. No new clients should be built based on this.


Method Summary
 int getAliveInterval()
          Get alive interval (0 = do not send keepalive packets)
 int getCompressionLevel()
          Get desired level of compression
 int getConnectTimeout()
          Timeout when connecting to server (in seconds)
 java.lang.String getDisplay()
          Get the display for X11 forwardings
 int getHelloTimeout()
          Timeout when waiting for initial greeting from server (in seconds)
 SSHInteractor getInteractor()
          Get interactor which should handle the authentication phase
 int getKexTimeout()
          Timeout of key exchange (in seconds)
 int getMaxPacketSz()
          get maximum packet size (0 = no limit)
 NetworkConnection getProxyConnection()
          Return a connection to the server.
 java.lang.String getSrvHost()
          Get host to connect to
 int getSrvPort()
          Get port number to connect to
 boolean wantPTY()
          Return true if we need a PTY on the server
 boolean wantX11Forward()
          Return true if X11 forwarding is desired
 

Method Detail

getSrvHost

java.lang.String getSrvHost()
                            throws java.io.IOException
Get host to connect to

Throws:
java.io.IOException

getSrvPort

int getSrvPort()
Get port number to connect to


getProxyConnection

NetworkConnection getProxyConnection()
                                     throws java.io.IOException
Return a connection to the server. This can be used to connect through proxies etc.

Throws:
java.io.IOException

getDisplay

java.lang.String getDisplay()
Get the display for X11 forwardings


getMaxPacketSz

int getMaxPacketSz()
get maximum packet size (0 = no limit)


getAliveInterval

int getAliveInterval()
Get alive interval (0 = do not send keepalive packets)


getCompressionLevel

int getCompressionLevel()
Get desired level of compression


getConnectTimeout

int getConnectTimeout()
Timeout when connecting to server (in seconds)


getHelloTimeout

int getHelloTimeout()
Timeout when waiting for initial greeting from server (in seconds)


getKexTimeout

int getKexTimeout()
Timeout of key exchange (in seconds)


wantX11Forward

boolean wantX11Forward()
Return true if X11 forwarding is desired


wantPTY

boolean wantPTY()
Return true if we need a PTY on the server


getInteractor

SSHInteractor getInteractor()
Get interactor which should handle the authentication phase