|
synchronized
void
|
addConnectionMonitor(ConnectionMonitor cmon)
|
|
synchronized
boolean
|
authenticateWithDSA(String user, String pem, String password)
This method is deprecated.
You should use one of the
authenticateWithPublicKey()
methods, this method is just a wrapper for it and will
disappear in future builds.
|
|
synchronized
boolean
|
authenticateWithKeyboardInteractive(String user, InteractiveCallback cb)
|
|
synchronized
boolean
|
authenticateWithKeyboardInteractive(String user, String[] submethods, InteractiveCallback cb)
After a successful connect, one has to authenticate oneself.
|
|
synchronized
boolean
|
authenticateWithNone(String user)
After a successful connect, one has to authenticate oneself.
|
|
synchronized
boolean
|
authenticateWithPassword(String user, String password)
After a successful connect, one has to authenticate oneself.
|
|
synchronized
boolean
|
authenticateWithPublicKey(String user, File pemFile, String password)
A convenience wrapper function which reads in a private key (PEM format,
either DSA or RSA) and then calls
authenticateWithPublicKey(String, char[], String).
|
|
synchronized
boolean
|
authenticateWithPublicKey(String user, char[] pemPrivateKey, String password)
After a successful connect, one has to authenticate oneself.
|
|
synchronized
void
|
cancelRemotePortForwarding(int bindPort)
Cancel an earlier requested remote port forwarding.
|
|
synchronized
void
|
close()
Close the connection to the SSH-2 server.
|
|
synchronized
ConnectionInfo
|
connect(ServerHostKeyVerifier verifier)
|
|
synchronized
ConnectionInfo
|
connect()
|
|
synchronized
ConnectionInfo
|
connect(ServerHostKeyVerifier verifier, int connectTimeout, int kexTimeout)
|
|
synchronized
LocalPortForwarder
|
createLocalPortForwarder(int local_port, String host_to_connect, int port_to_connect)
|
|
synchronized
LocalPortForwarder
|
createLocalPortForwarder(InetSocketAddress addr, String host_to_connect, int port_to_connect)
|
|
synchronized
LocalStreamForwarder
|
createLocalStreamForwarder(String host_to_connect, int port_to_connect)
|
|
synchronized
SCPClient
|
createSCPClient()
Create a very basic SCPClient that can be used to copy files
from/to the SSH-2 server.
|
|
GenericTransportManager
|
createTransportManager()
|
|
synchronized
void
|
enableDebugging(boolean enable, DebugLogger logger)
Enable/disable debug logging.
|
|
synchronized
void
|
forceKeyExchange()
Force an asynchronous key re-exchange (the call does not block).
|
|
synchronized
static
String[]
|
getAvailableCiphers()
Unless you know what you are doing, you will never need this.
|
|
synchronized
static
String[]
|
getAvailableMACs()
Unless you know what you are doing, you will never need this.
|
|
synchronized
static
String[]
|
getAvailableServerHostKeyAlgorithms()
Unless you know what you are doing, you will never need this.
|
|
ClientServerHello
|
getClientServerHello()
|
|
synchronized
ConnectionInfo
|
getConnectionInfo()
Returns a ConnectionInfo object containing the details of the
connection.
|
|
synchronized
String
|
getHostname()
Returns the hostname that was passed to the constructor.
|
|
synchronized
int
|
getPort()
Returns the port that was passed to the constructor.
|
|
synchronized
String[]
|
getRemainingAuthMethods(String user)
After a successful connect, one has to authenticate oneself.
|
|
GenericTransportManager
|
getTransportManager()
|
|
synchronized
boolean
|
isAuthMethodAvailable(String user, String method)
Checks if a specified authentication method is available.
|
|
synchronized
boolean
|
isAuthenticationComplete()
Determines if the authentication phase is complete.
|
|
synchronized
boolean
|
isAuthenticationPartialSuccess()
Returns true if there was at least one failed authentication request and
the last failed authentication request was marked with "partial success"
by the server.
|
|
synchronized
Session
|
openSession()
Open a new Session on this connection.
|
|
synchronized
void
|
ping()
This method can be used to perform end-to-end connection testing.
|
|
synchronized
void
|
requestRemotePortForwarding(String bindAddress, int bindPort, String targetAddress, int targetPort)
Request a remote port forwarding.
|
|
synchronized
void
|
sendIgnorePacket(byte[] data)
Send an SSH_MSG_IGNORE packet with the given data attribute.
|
|
synchronized
void
|
sendIgnorePacket()
Send an SSH_MSG_IGNORE packet.
|
|
void
|
setAuthenticated(boolean authenticated)
|
|
void
|
setAuthenticationManager(AuthenticationManager am)
|
|
synchronized
void
|
setClient2ServerCiphers(String[] ciphers)
Unless you know what you are doing, you will never need this.
|
|
synchronized
void
|
setClient2ServerMACs(String[] macs)
Unless you know what you are doing, you will never need this.
|
|
synchronized
void
|
setDHGexParameters(DHGexParameters dgp)
Sets the parameters for the diffie-hellman group exchange.
|
|
synchronized
void
|
setProxyData(ProxyData proxyData)
Used to tell the library that the connection shall be established through
a proxy server.
|
|
synchronized
void
|
setSecureRandom(SecureRandom rnd)
Provide your own instance of SecureRandom.
|
|
synchronized
void
|
setServer2ClientCiphers(String[] ciphers)
Unless you know what you are doing, you will never need this.
|
|
synchronized
void
|
setServer2ClientMACs(String[] macs)
Unless you know what you are doing, you will never need this.
|
|
synchronized
void
|
setServerHostKeyAlgorithms(String[] algos)
Define the set of allowed server host key algorithms to be used for the
following key exchange operations.
|
|
synchronized
void
|
setTCPNoDelay(boolean enable)
Enable/disable TCP_NODELAY (disable/enable Nagle's algorithm) on the
underlying socket.
|
|
synchronized
boolean
|
tryPublicKey(String user, Object publicKey)
After a successful connect, one has to authenticate oneself.
|