Modifier and Type | Method and Description |
---|---|
void |
SSHClient.auth(String username,
AuthMethod... methods)
Authenticate
username using the supplied methods . |
void |
SSHClient.auth(String username,
Iterable<AuthMethod> methods)
Authenticate
username using the supplied methods . |
void |
SSHClient.authPassword(String username,
char[] password)
Authenticate
username using the "password" authentication method and as a fallback basic
challenge-response authentication.. |
void |
SSHClient.authPassword(String username,
PasswordFinder pfinder)
Authenticate
username using the "password" authentication method and as a fallback basic
challenge-response authentication. |
void |
SSHClient.authPassword(String username,
String password)
Authenticate
username using the "password" authentication method and as a fallback basic
challenge-response authentication. |
void |
SSHClient.authPublickey(String username)
Authenticate
username using the "publickey" authentication method, with keys from some common
locations on the file system. |
void |
SSHClient.authPublickey(String username,
Iterable<KeyProvider> keyProviders)
Authenticate
username using the "publickey" authentication method. |
void |
SSHClient.authPublickey(String username,
KeyProvider... keyProviders)
Authenticate
username using the "publickey" authentication method. |
void |
SSHClient.authPublickey(String username,
String... locations)
Authenticate
username using the "publickey" authentication method, with keys from one or more
locations in the file system. |
protected void |
SSHClient.doKex()
Do key exchange.
|
void |
SSHClient.rekey()
Does key re-exchange.
|
void |
AbstractService.request() |
void |
Service.request()
Request and install this service with the associated transport.
|
Session |
SSHClient.startSession() |
void |
SSHClient.useCompression()
Adds
zlib compression to preferred compression algorithms. |
Modifier and Type | Method and Description |
---|---|
Promise<SSHPacket,ConnectionException> |
Connection.sendGlobalRequest(String name,
boolean wantReply,
byte[] specifics)
Send an SSH global request.
|
Promise<SSHPacket,ConnectionException> |
ConnectionImpl.sendGlobalRequest(String name,
boolean wantReply,
byte[] specifics) |
void |
Connection.sendOpenFailure(int recipient,
OpenFailException.Reason reason,
String message)
Send a
SSH_MSG_OPEN_FAILURE for specified Reason and message . |
void |
ConnectionImpl.sendOpenFailure(int recipient,
OpenFailException.Reason reason,
String message) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractChannel.close() |
void |
Channel.close()
Close this channel.
|
void |
Channel.Forwarded.confirm()
Confirm
CHANNEL_OPEN request. |
protected void |
AbstractChannel.gotExtendedData(SSHPacket buf) |
protected void |
AbstractChannel.gotUnknown(Message msg,
SSHPacket buf) |
void |
AbstractChannel.handle(Message msg,
SSHPacket buf) |
protected void |
AbstractChannel.handleRequest(String reqType,
SSHPacket buf) |
void |
Channel.Direct.open()
Request opening this channel from remote end.
|
void |
ChannelInputStream.receive(byte[] data,
int offset,
int len) |
protected void |
AbstractChannel.receiveInto(ChannelInputStream stream,
SSHPacket buf) |
void |
Channel.Forwarded.reject(OpenFailException.Reason reason,
String message)
Indicate rejection to remote end.
|
protected Event<ConnectionException> |
AbstractChannel.sendChannelRequest(String reqType,
boolean wantReply,
Buffer.PlainBuffer reqSpecific) |
protected void |
AbstractChannel.sendClose() |
void |
AbstractChannel.sendEOF() |
void |
Channel.sendEOF()
Sends an EOF message to the server for this channel; indicating that no more data will be sent by us.
|
Modifier and Type | Method and Description |
---|---|
void |
SessionChannel.allocateDefaultPTY() |
void |
Session.allocateDefaultPTY()
Allocates a default PTY.
|
void |
SessionChannel.allocatePTY(String term,
int cols,
int rows,
int width,
int height,
Map<PTYMode,Integer> modes) |
void |
Session.allocatePTY(String term,
int cols,
int rows,
int width,
int height,
Map<PTYMode,Integer> modes)
Allocate a psuedo-terminal for this session.
|
void |
SessionChannel.changeWindowDimensions(int cols,
int rows,
int width,
int height) |
void |
Session.Shell.changeWindowDimensions(int cols,
int rows,
int width,
int height)
Sends a window dimension change message.
|
Session.Command |
SessionChannel.exec(String command) |
Session.Command |
Session.exec(String command)
Execute a remote command.
|
protected void |
SessionChannel.gotExtendedData(SSHPacket buf) |
protected void |
AbstractDirectChannel.gotUnknown(Message cmd,
SSHPacket buf) |
void |
SessionChannel.handleRequest(String req,
SSHPacket buf) |
void |
AbstractDirectChannel.open() |
protected LocalPortForwarder.DirectTCPIPChannel |
LocalPortForwarder.openChannel(Socket socket) |
void |
SessionChannel.reqX11Forwarding(String authProto,
String authCookie,
int screen) |
void |
Session.reqX11Forwarding(String authProto,
String authCookie,
int screen)
Request X11 forwarding.
|
void |
SessionChannel.setEnvVar(String name,
String value) |
void |
Session.setEnvVar(String name,
String value)
Set an enviornment variable.
|
void |
SessionChannel.signal(Signal sig) |
void |
Session.Command.signal(Signal signal)
Send a signal to the remote command.
|
void |
Session.Shell.signal(Signal signal)
Send a signal.
|
Session.Shell |
SessionChannel.startShell() |
Session.Shell |
Session.startShell()
Request a shell.
|
Session.Subsystem |
SessionChannel.startSubsystem(String name) |
Session.Subsystem |
Session.startSubsystem(String name)
Request a subsystem.
|
Modifier and Type | Method and Description |
---|---|
RemotePortForwarder.Forward |
RemotePortForwarder.bind(RemotePortForwarder.Forward forward,
ConnectListener listener)
Request forwarding from the remote host on the specified
RemotePortForwarder.Forward . |
void |
RemotePortForwarder.cancel(RemotePortForwarder.Forward forward)
Request cancellation of some forwarding.
|
void |
AbstractForwardedChannel.confirm() |
void |
RemotePortForwarder.handleOpen(SSHPacket buf)
Internal API.
|
void |
X11Forwarder.handleOpen(SSHPacket buf)
Internal API
|
void |
ForwardedChannelOpener.handleOpen(SSHPacket buf)
Delegates a
SSH_MSG_CHANNEL_OPEN request for the channel type claimed by this opener. |
void |
AbstractForwardedChannel.reject(OpenFailException.Reason reason,
String message) |
protected SSHPacket |
RemotePortForwarder.req(String reqName,
RemotePortForwarder.Forward forward) |
Modifier and Type | Field and Description |
---|---|
static ExceptionChainer<TransportException> |
TransportException.chainer |
Modifier and Type | Method and Description |
---|---|
void |
TransportImpl.doKex() |
void |
Transport.doKex()
Do key exchange and algorithm negotiation.
|
void |
TransportImpl.init(String remoteHost,
int remotePort,
InputStream in,
OutputStream out) |
void |
Transport.init(String host,
int port,
InputStream in,
OutputStream out)
Sets the host information and the streams to be used by this transport.
|
void |
TransportImpl.join() |
void |
Transport.join()
Joins the thread calling this method to the transport's death.
|
void |
TransportImpl.join(int timeout,
TimeUnit unit) |
void |
Transport.join(int timeout,
TimeUnit unit)
Joins the thread calling this method to the transport's death.
|
void |
TransportImpl.reqService(Service service) |
void |
Transport.reqService(Service service)
Request a SSH service represented by a
Service instance. |
long |
TransportImpl.sendUnimplemented() |
long |
Transport.sendUnimplemented()
Sends SSH_MSG_UNIMPLEMENTED in response to the last packet received.
|
long |
TransportImpl.write(SSHPacket payload) |
long |
Transport.write(SSHPacket payload)
Write a packet over this transport.
|
Modifier and Type | Method and Description |
---|---|
void |
Compression.uncompress(Buffer from,
Buffer to)
Uncompress the data in a buffer into another buffer.
|
void |
ZlibCompression.uncompress(Buffer from,
Buffer to) |
Modifier and Type | Method and Description |
---|---|
void |
KeyExchange.init(Transport trans,
String V_S,
String V_C,
byte[] I_S,
byte[] I_C)
Initialize the key exchange algorithm.
|
void |
AbstractDHG.init(Transport trans,
String V_S,
String V_C,
byte[] I_S,
byte[] I_C) |
boolean |
KeyExchange.next(Message msg,
SSHPacket buffer)
Process the next packet
|
boolean |
AbstractDHG.next(Message msg,
SSHPacket packet) |
Modifier and Type | Method and Description |
---|---|
void |
UserAuthImpl.authenticate(String username,
Service nextService,
Iterable<AuthMethod> methods) |
void |
UserAuth.authenticate(String username,
Service nextService,
Iterable<AuthMethod> methods)
Attempt to authenticate
username using each of methods in order. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractAuthMethod.handle(Message msg,
SSHPacket buf) |
void |
AuthPassword.handle(Message cmd,
SSHPacket buf) |
void |
AuthKeyboardInteractive.handle(Message cmd,
SSHPacket buf) |
void |
AuthPublickey.handle(Message cmd,
SSHPacket buf)
Internal use.
|
void |
AbstractAuthMethod.request() |
void |
AuthMethod.request() |
Copyright © 2009–2017. All rights reserved.