Modifier and Type | Method and Description |
---|---|
void |
JSch.addIdentity(Identity identity,
byte[] passphrase)
Adds an identity to be used for public-key authentication.
|
void |
JSch.addIdentity(String prvkey)
Adds an identity to be used for public-key authentication.
|
void |
JSch.addIdentity(String prvkey,
byte[] passphrase)
Adds an identity to be used for public-key authentication.
|
void |
JSch.addIdentity(String name,
byte[] prvkey,
byte[] pubkey,
byte[] passphrase)
Adds an identity to be used for public-key authentication.
|
void |
JSch.addIdentity(String prvkey,
String passphrase)
Adds an identity to be used for public-key authentication.
|
void |
JSch.addIdentity(String prvkey,
String pubkey,
byte[] passphrase)
Adds an identity to be used for public-key authentication.
|
void |
Session.connect()
opens the connection, using the timeout set with
Session.setTimeout(int) . |
void |
Channel.connect()
Opens the channel without any timeout.
|
void |
Session.connect(int connectTimeout)
opens the connection, using the specified timeout.
|
void |
ChannelDirectTCPIP.connect(int connectTimeout)
opens the channel.
|
void |
Channel.connect(int connectTimeout)
Opens the channel.
|
void |
ProxySOCKS5.connect(SocketFactory socket_factory,
String host,
int port,
int timeout) |
void |
ProxySOCKS4.connect(SocketFactory socket_factory,
String host,
int port,
int timeout) |
void |
ProxyHTTP.connect(SocketFactory socket_factory,
String host,
int port,
int timeout) |
void |
GSSContext.create(String user,
String host)
creates the context.
|
void |
Session.delPortForwardingL(int lport)
Cancels the local port forwarding assigned
at local TCP port
lport on loopback interface. |
void |
Session.delPortForwardingL(String bind_address,
int lport)
Cancels the local port forwarding assigned
at local TCP port
lport on bind_address interface. |
void |
Session.delPortForwardingR(int rport)
Cancels the remote port forwarding assigned at remote TCP port
rport . |
void |
Session.delPortForwardingR(String bind_address,
int rport)
Cancels the remote port forwarding assigned at
remote TCP port
rport bound on the interface at
bind_address . |
byte[] |
KeyPairRSA.forSSHAgent() |
byte[] |
KeyPairPKCS8.forSSHAgent() |
byte[] |
KeyPairECDSA.forSSHAgent() |
byte[] |
KeyPairDSA.forSSHAgent() |
abstract byte[] |
KeyPair.forSSHAgent() |
static KeyPair |
KeyPair.genKeyPair(JSch jsch,
int type)
Creates a new key pair with default key size of 1024 bits.
|
static KeyPair |
KeyPair.genKeyPair(JSch jsch,
int type,
int key_size)
Creates a new key pair.
|
Vector |
JSch.getIdentityNames()
Lists names of identities included in the identityRepository.
|
String[] |
Session.getPortForwardingL()
returns a snapshot of the current local port forwarding
configurations.
|
String[] |
Session.getPortForwardingR()
Lists the registered remote port forwarding.
|
Session |
Channel.getSession()
Retrieves the session to which this channel belongs.
|
Session |
JSch.getSession(String host)
Instantiates the
Session object with
host . |
Session |
JSch.getSession(String username,
String host)
Instantiates the
Session object with
username and host . |
Session |
JSch.getSession(String username,
String host,
int port)
Instantiates the
Session object with given
username , host and port . |
Channel |
Session.getStreamForwarder(String host,
int port)
Instantiates an instance of stream-forwarder to
host :port . |
byte[] |
GSSContext.init(byte[] token,
int s,
int l)
Tries to establish the secure context by processing a token
from the server and (maybe) creating a new token to send to
the server.
|
static KeyPair |
KeyPair.load(JSch jsch,
byte[] prvkey,
byte[] pubkey) |
static KeyPair |
KeyPair.load(JSch jsch,
String prvkey)
Loads a key pair from a pair of files.
|
static KeyPair |
KeyPair.load(JSch jsch,
String prvfile,
String pubfile)
Loads a key pair from a pair of files.
|
Channel |
Session.openChannel(String type)
Opens a new channel of some type over this connection.
|
void |
JSch.removeAllIdentity()
Removes all identities.
|
void |
JSch.removeIdentity(Identity identity)
Removes the identity from identityRepository.
|
void |
JSch.removeIdentity(String name)
Deprecated.
use #removeIdentity(Identity identity)
|
void |
ChannelSftp.setBulkRequests(int bulk_requests)
Specify how many requests may be sent at any one time.
|
void |
JSch.setKnownHosts(InputStream stream)
Creates a Host key repository from an InputStream.
|
void |
JSch.setKnownHosts(String filename)
Creates a host key repository from a file name.
|
boolean |
Identity.setPassphrase(byte[] passphrase)
Provides a passphrase to decrypt the private key.
|
int |
Session.setPortForwardingL(int lport,
String host,
int rport)
Registers the local port forwarding for loop-back interface.
|
int |
Session.setPortForwardingL(String conf)
Registers the local port forwarding.
|
int |
Session.setPortForwardingL(String bind_address,
int lport,
String host,
int rport)
Registers the local port forwarding.
|
int |
Session.setPortForwardingL(String bind_address,
int lport,
String host,
int rport,
ServerSocketFactory ssf)
Registers the local port forwarding.
|
int |
Session.setPortForwardingL(String bind_address,
int lport,
String host,
int rport,
ServerSocketFactory ssf,
int connectTimeout)
Registers the local port forwarding.
|
void |
Session.setPortForwardingR(int rport,
String daemon)
Registers the remote port forwarding for the loopback interface
of the remote.
|
void |
Session.setPortForwardingR(int rport,
String host,
int lport)
Registers the remote port forwarding for the loopback interface
of the remote.
|
void |
Session.setPortForwardingR(int rport,
String host,
int lport,
SocketFactory sf)
Registers the remote port forwarding for the loopback interface
of the remote.
|
void |
Session.setPortForwardingR(int rport,
String daemon,
Object[] arg)
Registers the remote port forwarding for the loopback interface
of the remote.
|
int |
Session.setPortForwardingR(String conf)
Registers the remote port forwarding.
|
void |
Session.setPortForwardingR(String bind_address,
int rport,
String host,
int lport)
Registers the remote port forwarding.
|
void |
Session.setPortForwardingR(String bind_address,
int rport,
String host,
int lport,
SocketFactory sf)
Registers the remote port forwarding.
|
void |
Session.setPortForwardingR(String bind_address,
int rport,
String daemon,
Object[] arg)
Registers the remote port forwarding.
|
void |
Session.setServerAliveInterval(int interval)
sets the server alive interval property.
|
void |
Session.setTimeout(int timeout)
sets the timeout setting.
|
void |
ChannelSubsystem.start() |
void |
ChannelShell.start() |
void |
ChannelSftp.start() |
void |
ChannelExec.start() |
void |
Channel.start()
Not to be called externally.
|
Constructor and Description |
---|
HostKey(String host,
byte[] key)
creates a host key by guessing it's type from the data.
|
HostKey(String host,
int type,
byte[] key)
creates a host key with given type.
|
HostKey(String host,
int type,
byte[] key,
String comment) |
HostKey(String marker,
String host,
int type,
byte[] key,
String comment) |
This is an inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.