A C D E F G H I J K M N O P R S T V W X Z _

A

add_host_key(String, BigInteger, BigInteger) - Method in class jssh.KnownHostsFile
Add the server's host key to this known_hosts file.
addLocalPortForwarding(PortForwarding) - Method in class jssh.Options
Adds the specified local port forwarding to the list of local ports to be forwarded to the server.
addRemotePortForwarding(PortForwarding) - Method in class jssh.Options
Adds the specified port-forwarding to the list of server ports that must be forwarded to the client.
authenticateUser(RSAPrivateKey) - Method in class jssh.ClientProtocolHandler
Authenticate the user using RSA authentication.
authenticateUser(String, String) - Method in class jssh.ClientProtocolHandler
Authenticate the user using username-password authentication.

C

Channel - class jssh.Channel.
This class represents an SSH channel that implements local-to-remote port-forwarding.
Channel(IProtocolHandler, int, String, int) - Constructor for class jssh.Channel
Use this constructor to create a Channel that implements local-to-remote port forwarding.
ChannelManager - class jssh.ChannelManager.
This class manages a set of encrypted SSH channels.
ChannelManager() - Constructor for class jssh.ChannelManager
 
channelsAreOpen() - Method in class jssh.ChannelManager
Returns true if one or more forwarded connections are open; otherwise false.
check_host_key(String, BigInteger, BigInteger) - Method in class jssh.KnownHostsFile
Check that the server's host key is in the known_hosts file.
ClientProtocolHandler - class jssh.ClientProtocolHandler.
This class performs all the SSH client protocol handling on a specified network connection.
ClientProtocolHandler(Socket, Options) - Constructor for class jssh.ClientProtocolHandler
 
close() - Method in class jssh.STDIN_OutputStream
Closes the output stream by enqueuing an SSH_CMSG_EOF packet.
CMSG_AUTH_PASSWORD - class jssh.CMSG_AUTH_PASSWORD.
The client sends this message containing the password.
CMSG_AUTH_PASSWORD(String) - Constructor for class jssh.CMSG_AUTH_PASSWORD
Constructor.
CMSG_AUTH_RSA - class jssh.CMSG_AUTH_RSA.
The client sends this message containing the client's public key, in order to initiate RSA authentication.
CMSG_AUTH_RSA_RESPONSE - class jssh.CMSG_AUTH_RSA_RESPONSE.
The client sends this message in response to an SSH_SMSG_AUTH_RSA_CHALLENGE.
CMSG_AUTH_RSA_RESPONSE(byte[]) - Constructor for class jssh.CMSG_AUTH_RSA_RESPONSE
Constructor.
CMSG_AUTH_RSA(byte[]) - Constructor for class jssh.CMSG_AUTH_RSA
Constructor.
CMSG_EOF - class jssh.CMSG_EOF.
This message is sent by the client to indicate that EOF has been reached on the input.
CMSG_EOF() - Constructor for class jssh.CMSG_EOF
 
CMSG_EXEC_CMD - class jssh.CMSG_EXEC_CMD.
The client sends this message to ask the server to execute the specified command.
CMSG_EXEC_CMD(String) - Constructor for class jssh.CMSG_EXEC_CMD
Constructor.
CMSG_EXEC_SHELL - class jssh.CMSG_EXEC_SHELL.
This message starts a shell (command interpreter) for the user, and moves into interactive session mode.
CMSG_EXEC_SHELL() - Constructor for class jssh.CMSG_EXEC_SHELL
 
CMSG_EXIT_CONFIRMATION - class jssh.CMSG_EXIT_CONFIRMATION.
This message is sent by the client in response to SSH_SMSG_EXITSTATUS.
CMSG_EXIT_CONFIRMATION() - Constructor for class jssh.CMSG_EXIT_CONFIRMATION
 
CMSG_PORT_FORWARD_REQUEST - class jssh.CMSG_PORT_FORWARD_REQUEST.
Sent by the client in the preparatory phase, this message requests that server_port_ on the server machine be forwarded over the secure channel to the client machine, and from there to the specified host and port.
CMSG_PORT_FORWARD_REQUEST(int, String, int) - Constructor for class jssh.CMSG_PORT_FORWARD_REQUEST
Construct a CMSG_PORT_FORWARD_REQUEST packet.
CMSG_REQUEST_COMPRESSION - class jssh.CMSG_REQUEST_COMPRESSION.
This message can be sent by the client in the preparatory operations phase.
CMSG_REQUEST_COMPRESSION(int) - Constructor for class jssh.CMSG_REQUEST_COMPRESSION
Construct a SSH_CMSG_REQUEST_COMPRESSION packet.
CMSG_REQUEST_PTY - class jssh.CMSG_REQUEST_PTY.
This message is sent by the client to request that a pseudo-terminal device be allocated for this session.
CMSG_REQUEST_PTY(String, int, int, byte[]) - Constructor for class jssh.CMSG_REQUEST_PTY
Construct a SSH_CMSG_REQUEST_PTY packet.
CMSG_SESSION_KEY - class jssh.CMSG_SESSION_KEY.
This message is sent by the client as the first message in the session.
CMSG_SESSION_KEY(ITrueRandom, SMSG_PUBLIC_KEY) - Constructor for class jssh.CMSG_SESSION_KEY
Construct the SSH_CMSG_SESSION_KEY packet.
CMSG_STDIN_DATA - class jssh.CMSG_STDIN_DATA.
This message delivers data from the client to be supplied as input to the shell or program running on the server side.
CMSG_STDIN_DATA(byte[]) - Constructor for class jssh.CMSG_STDIN_DATA
Construct a SSH_CMSG_STDIN_DATA packet containing the specified data.
CMSG_USER - class jssh.CMSG_USER.
Sent by the client to begin authentication.
CMSG_USER(String) - Constructor for class jssh.CMSG_USER
 
compressionEnabled() - Method in class jssh.Options
Returns true if compression is enabled.
concatenate(byte[], byte[]) - Static method in class jssh.SSHMisc
Returns a new byte array which is the concatenation of the two byte arrays supplied.
connect() - Method in class jssh.SSHClient
This method connects to the server and starts up the protocol handler.
crc32(byte[], int) - Static method in class jssh.SSHMisc
Compute the crc Cyclic Redundancy Check, with the polynomial 0xedb88320, The polynomial is X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0 We take it "backwards" and put the highest-order term in the lowest-order bit.
CS8 - Static variable in class jssh.CMSG_REQUEST_PTY
 

D

debug(byte[]) - Static method in class jssh.SSHMisc
A convenient method for displaying the contents of a byte array.
debug(String) - Method in class jssh.ClientProtocolHandler
Display the specified debugging message.
declareUser(String) - Method in class jssh.ClientProtocolHandler
Declares the username to the server.
deflate(byte[], int) - Method in class jssh.GZDeflater
Compresses bytes into the specified buffer, and returns the number of compressed bytes.
deflate(byte[], int, int, int) - Method in class jssh.GZDeflater
Compresses bytes into the specified buffer, and returns the number of compressed bytes.
DevRandom - class jssh.DevRandom.
For use on systems such as Linux which provide a "/dev/random" device; obtains truly random bits from "/dev/random" for use as a session key.
DevRandom() - Constructor for class jssh.DevRandom
Constructor

E

ECHO - Static variable in class jssh.CMSG_REQUEST_PTY
 
ECHOE - Static variable in class jssh.CMSG_REQUEST_PTY
 
ECHOK - Static variable in class jssh.CMSG_REQUEST_PTY
 
ECHONL - Static variable in class jssh.CMSG_REQUEST_PTY
 
encrypt(byte[], byte[], byte[]) - Static method in class jssh.RSAAlgorithm
 
enqueue(Packet) - Method in class jssh.STDOUT_InputStream
 
enqueue(Packet) - Method in class jssh.PacketQueue
Enqueue an Packet object onto the queue.
enqueue(Packet) - Method in class jssh.OpenChannel
Enqueue an SSH packet onto the input queue of this channel.
enqueueToRemote(Packet) - Method in class jssh.ClientProtocolHandler
Enqueues a packet to the SSH server.
enqueueToRemote(Packet) - Method in interface jssh.IProtocolHandler
Enqueues a packet to the SSH server.
enqueueToStdout(Packet) - Method in class jssh.ClientProtocolHandler
Enqueues a packet to the STDOUT.
enqueueToStdout(Packet) - Method in interface jssh.IProtocolHandler
Enqueues a packet to the STDOUT stream.
exchangeIdStrings() - Method in class jssh.ClientProtocolHandler
This method exchanges version identification strings with the SSH server.
execCmd(String) - Method in class jssh.ClientProtocolHandler
Starts executing the given command, and enters interactive session mode.
execShell() - Method in class jssh.ClientProtocolHandler
Start an interactive session.

F

findOpenChannel(int) - Method in class jssh.ClientProtocolHandler
Finds the open channel with the specified channel number.
findOpenChannel(int) - Method in class jssh.ChannelManager
Find the local channel with the specified local ID.
findOpenChannel(int) - Method in interface jssh.IProtocolHandler
Finds the open channel with the specified channel number.
finish() - Method in class jssh.GZDeflater
When called, indicates that compression should end with the current contents of the input buffer.
finished() - Method in class jssh.GZDeflater
Returns true if the end of the compressed data output stream has been reached.
finished() - Method in class jssh.GZInflater
Returns true if the end of the compressed data stream has been reached.

G

getAntiSpoofingCookie() - Method in class jssh.SMSG_PUBLIC_KEY
 
getCause() - Method in class jssh.MSG_DISCONNECT
Returns the data that must be sent to stdout.
getChallenge() - Method in class jssh.SMSG_AUTH_RSA_CHALLENGE
 
getChannelData() - Method in class jssh.MSG_CHANNEL_DATA
 
getChannelNumber() - Method in class jssh.MSG_PORT_OPEN
 
getCipherName() - Method in class jssh.CMSG_SESSION_KEY
Returns the name of the cipher negotiated with the server.
getCipherType() - Method in class jssh.RSAPrivateKeyFile
 
getCommand() - Method in class jssh.Options
 
getComment() - Method in class jssh.RSAPrivateKeyFile
 
getComment() - Method in class jssh.RSAPrivateKey
 
getData() - Method in class jssh.Packet
Returns the byte array including the packet-type byte and the binary data bytes
getDebug() - Method in class jssh.Options
 
getExitStatus() - Method in class jssh.SMSG_EXITSTATUS
 
getExponent() - Method in class jssh.RSAPublicKey
 
getExponent() - Method in class jssh.RSAPrivateKey
 
getHostKeyPublicExponent() - Method in class jssh.SMSG_PUBLIC_KEY
 
getHostKeyPublicModulus() - Method in class jssh.SMSG_PUBLIC_KEY
 
getHostname() - Method in class jssh.MSG_PORT_OPEN
 
getHostname() - Method in class jssh.PortForwarding
 
getHostname() - Method in class jssh.Options
 
getHostname() - Method in class jssh.OpenChannel
 
getHostPort() - Method in class jssh.PortForwarding
 
getIdentityFile() - Method in class jssh.Options
 
getInteger(int, byte[]) - Static method in class jssh.SSHInputStream
Returns the 32-bit integer encoded at position "offset" in the specified byte array.
getListenPort() - Method in class jssh.PortForwarding
 
getLocalChannelNumber() - Method in class jssh.MSG_CHANNEL_OPEN_CONFIRMATION
 
getLocalChannelNumber() - Method in class jssh.OpenChannel
 
getLocalForwardings() - Method in class jssh.Options
Returns an iterator that allows the calling code to iterate through the list of local port-forwardings.
getMessage() - Method in class jssh.MSG_DEBUG
Returns the data that must be sent to stdout.
getModulus() - Method in class jssh.RSAPublicKey
 
getModulus() - Method in class jssh.RSAPrivateKey
 
getMpInt(int, byte[]) - Static method in class jssh.SSHInputStream
Return the multiprecision-integer at the position "offset" in the specified byte array.
getNextPacket() - Method in class jssh.PacketQueue
Dequeue an Packet object off the queue; if the queue is empty, wait until another thread enqueues an event onto it.
getNonZeroRandomByte(MessageDigest) - Static method in class jssh.SSHMisc
Get a nonzero random byte for use as padding at the start of an SSH packet.
getPacketType() - Method in class jssh.Packet
 
getPort() - Method in class jssh.MSG_PORT_OPEN
 
getPort() - Method in class jssh.Options
 
getPrivateKey() - Method in class jssh.RSAPrivateKeyFile
This method should be called if the key is not encrypted, ie getCipherType() returns SSH_CIPHER_NONE;
getPrivateKey(String) - Method in class jssh.RSAPrivateKeyFile
This method should be called if the key is encrypted, ie if getCipherType() returns SSH_CIPHER_3DES.
getProtocolFlags() - Method in class jssh.SMSG_PUBLIC_KEY
 
getRandomBytes(byte[]) - Method in class jssh.DevRandom
Fill the specified byte-array with random bits.
getRandomBytes(byte[]) - Method in interface jssh.ITrueRandom
Fill the specified byte-array with random bits.
getRemoteChannelNumber() - Method in class jssh.MSG_CHANNEL_OPEN_FAILURE
 
getRemoteChannelNumber() - Method in class jssh.MSG_CHANNEL_OPEN_CONFIRMATION
 
getRemoteChannelNumber() - Method in class jssh.MSG_CHANNEL_DATA
 
getRemoteChannelNumber() - Method in class jssh.MSG_CHANNEL_CLOSE
 
getRemoteChannelNumber() - Method in class jssh.MSG_CHANNEL_CLOSE_CONFIRMATION
 
getRemoteChannelNumber() - Method in class jssh.OpenChannel
 
getRemoteForwardings() - Method in class jssh.Options
Returns an iterator that allows the calling code to iterate through the list of remote port-forwardings.
getServerKeyBits() - Method in class jssh.SMSG_PUBLIC_KEY
 
getServerKeyPacket() - Method in class jssh.ClientProtocolHandler
Returns the SSH_SMSG_PUBLIC_KEY packet that was sent by the server.
getServerKeyPublicExponent() - Method in class jssh.SMSG_PUBLIC_KEY
 
getServerKeyPublicModulus() - Method in class jssh.SMSG_PUBLIC_KEY
 
getSessionID() - Method in class jssh.CMSG_SESSION_KEY
Returns the session id generated by the client.
getSessionKey() - Method in class jssh.CMSG_SESSION_KEY
Returns the session key generated by the client.
getStderrData() - Method in class jssh.SMSG_STDERR_DATA
Returns the data that must be sent to stdout/stderr.
getSTDIN() - Method in class jssh.ClientProtocolHandler
Returns a reference to the OutputStream object to which keyboard data must be written (for sending to the server).
getSTDOUT() - Method in class jssh.ClientProtocolHandler
Returns a reference to the InputStream object from which data must be read (for displaying on the screen).
getStdoutData() - Method in class jssh.SMSG_STDOUT_DATA
Returns the data that must be sent to stdout.
getString(int, byte[]) - Static method in class jssh.SSHInputStream
Return the string that is encoded at position "offset" in the specified byte array.
getSupportedAuthenticationsMask() - Method in class jssh.SMSG_PUBLIC_KEY
 
getSupportedCiphersMask() - Method in class jssh.SMSG_PUBLIC_KEY
 
getTerminalSize() - Method in class jssh.Options
 
getTerminalType() - Method in class jssh.Options
 
getUser() - Method in class jssh.Options
 
GZDeflater - class jssh.GZDeflater.
This class provides support for compression using the GZIP compression algorithm.
GZDeflater(int) - Constructor for class jssh.GZDeflater
Creates a new compressor.
GZInflater - class jssh.GZInflater.
This class provides support for uncompression using the GZIP compression algorithm.
GZInflater() - Constructor for class jssh.GZInflater
Creates a new uncompressor.

H

HOST_KEY_DIFFERS - Static variable in class jssh.KnownHostsFile
 
HOST_KEY_NEW - Static variable in class jssh.KnownHostsFile
 
HOST_KEY_OK - Static variable in class jssh.KnownHostsFile
 

I

ICANON - Static variable in class jssh.CMSG_REQUEST_PTY
 
ICRNL - Static variable in class jssh.CMSG_REQUEST_PTY
 
IInteractivePacket - interface jssh.IInteractivePacket.
This interface tags all the packets that can be received during the interactive phase.
inflate(byte[], int) - Method in class jssh.GZInflater
Uncompresses bytes into the specified buffer, and returns the number of bytes uncompressed.
inflate(byte[], int, int, int) - Method in class jssh.GZInflater
Uncompresses bytes into the specified buffer, and returns the number of bytes uncompressed.
insertInteger(int, int, byte[]) - Static method in class jssh.SSHOutputStream
Encode the specified integer into a byte array as four consecutive bytes, msb first.
IPacketConstants - interface jssh.IPacketConstants.
Defines the various types of SSH packets.
IProtocolHandler - interface jssh.IProtocolHandler.
This interface specifies methods that must be provided by the SSH protocol handler in order to handle received packets.
ISIG - Static variable in class jssh.CMSG_REQUEST_PTY
 
isPortOpenAllowed(String, int) - Method in class jssh.Options
This method is called when an SSH_MSG_PORT_OPEN message is received.
isPortOpenAllowed(String, int) - Method in class jssh.ClientProtocolHandler
This method is called when a SSH_MSG_PORT_OPEN message is received; it returns true if the port open request matches one of the local port forwardings specified by the user.
isPortOpenAllowed(String, int) - Method in interface jssh.IProtocolHandler
This method is called when a SSH_MSG_PORT_OPEN message is received; it returns true if the port open request matches one of the local port forwardings specified by the user.
ITrueRandom - interface jssh.ITrueRandom.
Defines the interface of an object that supplies truly random bits, suitable for session keys.

J

jssh - package jssh
Provides the classes and interfaces for the JSSH Secure Shell Client protocol handler (for SSH protocol v1.5).

K

KnownHostsFile - class jssh.KnownHostsFile.
This class provides methods for checking whether a server's public key is in a known_hosts file, and for adding a key to the file.
KnownHostsFile(String) - Constructor for class jssh.KnownHostsFile
Constructor

M

main(String[]) - Static method in class jssh.SSHClient
Main method of the example program.
MSG_CHANNEL_CLOSE - class jssh.MSG_CHANNEL_CLOSE.
When a channel is closed at one side of the connection, that side sends this message.
MSG_CHANNEL_CLOSE_CONFIRMATION - class jssh.MSG_CHANNEL_CLOSE_CONFIRMATION.
This is sent in response to a SSH_MSG_CHANNEL_CLOSE unless the channel was already closed.
MSG_CHANNEL_CLOSE_CONFIRMATION(byte[]) - Constructor for class jssh.MSG_CHANNEL_CLOSE_CONFIRMATION
Use this constructor when receiving a packet from the network.
MSG_CHANNEL_CLOSE_CONFIRMATION(int) - Constructor for class jssh.MSG_CHANNEL_CLOSE_CONFIRMATION
Use this constructor when creating a packet to send on the network.
MSG_CHANNEL_CLOSE(byte[]) - Constructor for class jssh.MSG_CHANNEL_CLOSE
Use this constructor when receiving a packet from the network.
MSG_CHANNEL_CLOSE(int) - Constructor for class jssh.MSG_CHANNEL_CLOSE
Use this constructor when creating a packet to send on the network.
MSG_CHANNEL_DATA - class jssh.MSG_CHANNEL_DATA.
Data is transmitted in a channel in these messages.
MSG_CHANNEL_DATA(byte[]) - Constructor for class jssh.MSG_CHANNEL_DATA
Use this constructor when receiving a packet from the network.
MSG_CHANNEL_DATA(int, byte[], int) - Constructor for class jssh.MSG_CHANNEL_DATA
Use this constructor when creating a packet to be sent on the network.
MSG_CHANNEL_OPEN_CONFIRMATION - class jssh.MSG_CHANNEL_OPEN_CONFIRMATION.
This is sent in response to any channel open request if the channel has been successfully opened.
MSG_CHANNEL_OPEN_CONFIRMATION(byte[]) - Constructor for class jssh.MSG_CHANNEL_OPEN_CONFIRMATION
Use this constructor when receiving a packet from the network.
MSG_CHANNEL_OPEN_CONFIRMATION(int, int) - Constructor for class jssh.MSG_CHANNEL_OPEN_CONFIRMATION
Use this constructor when creating a packet to be sent on the network.
MSG_CHANNEL_OPEN_FAILURE - class jssh.MSG_CHANNEL_OPEN_FAILURE.
This message indicates that an earlier channel open request by the other side has failed or has been denied.
MSG_CHANNEL_OPEN_FAILURE(byte[]) - Constructor for class jssh.MSG_CHANNEL_OPEN_FAILURE
Use this constructor when receiving a packet from the network.
MSG_CHANNEL_OPEN_FAILURE(int) - Constructor for class jssh.MSG_CHANNEL_OPEN_FAILURE
Use this constructor when creating a packet to be sent on the network.
MSG_DEBUG - class jssh.MSG_DEBUG.
This message can be sent by either party at any time; it is used to send debugging messages that may be informative to the user in solving various problems.
MSG_DEBUG(byte[]) - Constructor for class jssh.MSG_DEBUG
 
MSG_DISCONNECT - class jssh.MSG_DISCONNECT.
This message can be sent by either party at any time; it causes the immediate disconnection of the connection.
MSG_DISCONNECT(byte[]) - Constructor for class jssh.MSG_DISCONNECT
 
MSG_IGNORE - class jssh.MSG_IGNORE.
This message may be sent by either part at any time (though this client implementation never sends it).
MSG_IGNORE() - Constructor for class jssh.MSG_IGNORE
 
MSG_PORT_OPEN - class jssh.MSG_PORT_OPEN.
Sent by either party in interactive mode, this message indicates that a connection has been opened to a forwarded TCP/IP port.
MSG_PORT_OPEN(byte[]) - Constructor for class jssh.MSG_PORT_OPEN
Use this constructor when receiving a packet from the network.
MSG_PORT_OPEN(int, String, int) - Constructor for class jssh.MSG_PORT_OPEN
 

N

needsInput() - Method in class jssh.GZDeflater
Returns true if the input buffer is empty and setInput() should be called to provide more input.
needsInput() - Method in class jssh.GZInflater
Returns true if no data remains in the input buffer.

O

ONLCR - Static variable in class jssh.CMSG_REQUEST_PTY
 
OpenChannel - class jssh.OpenChannel.
This class represents an open SSH channel.
OpenChannel(IProtocolHandler, Socket, String, int) - Constructor for class jssh.OpenChannel
Use this constructor for a channel that implements local-to-remote port-forwarding.
OpenChannel(IProtocolHandler, String, int, int) - Constructor for class jssh.OpenChannel
Use this constructor for a channel that implements remote-to-local port-forwarding.
OPOST - Static variable in class jssh.CMSG_REQUEST_PTY
 
Options - class jssh.Options.
This class encapsulates all the options that can be specified on the command-line for the SSH client.
Options() - Constructor for class jssh.Options
 

P

Packet - class jssh.Packet.
This is the superclass for all the various types of SSH protocol packets
Packet() - Constructor for class jssh.Packet
Use the default constructor when you don't know the size of the data array in advance.
Packet(byte[]) - Constructor for class jssh.Packet
Use this constructor when receiving a packet from the network.
Packet(int) - Constructor for class jssh.Packet
Use this constructor for packets that have no arguments.
Packet(int, byte[]) - Constructor for class jssh.Packet
Use this constructor when creating a packet to be sent on the network.
PacketQueue - class jssh.PacketQueue.
This class queues SSH protocol packets.
PacketQueue() - Constructor for class jssh.PacketQueue
Constructor
PortForwarding - class jssh.PortForwarding.
This class encapsulates the specifications of an SSH tunnel.
PortForwarding(int, String, int) - Constructor for class jssh.PortForwarding
 
preparatoryOperations() - Method in class jssh.ClientProtocolHandler
Performs preparatory operations such as requesting compression and port-forwarding.
processPacket(IProtocolHandler) - Method in class jssh.SMSG_STDOUT_DATA
This method implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.SMSG_STDERR_DATA
This method implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.SMSG_EXITSTATUS
This method implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.MSG_PORT_OPEN
Implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.MSG_DISCONNECT
This method implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.MSG_DEBUG
This method implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.MSG_CHANNEL_OPEN_FAILURE
Implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.MSG_CHANNEL_OPEN_CONFIRMATION
Implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.MSG_CHANNEL_DATA
Implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.MSG_CHANNEL_CLOSE
Implements the IInteractivePacket interface.
processPacket(IProtocolHandler) - Method in class jssh.MSG_CHANNEL_CLOSE_CONFIRMATION
 
processPacket(IProtocolHandler) - Method in interface jssh.IInteractivePacket
 
publicKeyEncrypt(byte[], byte[], byte[], MessageDigest) - Static method in class jssh.RSAAlgorithm
 

R

read() - Method in class jssh.STDOUT_InputStream
Reads the next byte of data from this input stream.
read(byte[]) - Method in class jssh.STDOUT_InputStream
Reads some number of bytes from this input stream and stores them in the array b_.
read(byte[], int, int) - Method in class jssh.STDOUT_InputStream
Reads up to len_ bytes of data from this input stream into the specified array, starting at the specified offset.
readPacket() - Method in class jssh.SSHInputStream
Read an SSH packet from the network.
receiveServerKey() - Method in class jssh.ClientProtocolHandler
Wait for the SSH_SMSG_PUBLIC_KEY packet from the server.
registerLocalChannel(Channel) - Method in class jssh.ChannelManager
Creates and registers a channel for local-to-remote port-forwarding.
registerOpenChannel(OpenChannel) - Method in class jssh.ClientProtocolHandler
Registers an open SSH channel (encrypted tunnel).
registerOpenChannel(OpenChannel) - Method in class jssh.ChannelManager
This method is called by an open channel when it has succeeded in opening its TCP connection to the specified hostname and port.
registerOpenChannel(OpenChannel) - Method in interface jssh.IProtocolHandler
Registers an open SSH channel (encrypted tunnel).
removeOpenChannel(OpenChannel) - Method in class jssh.ClientProtocolHandler
Deregisters and open SSH chanel.
removeOpenChannel(OpenChannel) - Method in class jssh.ChannelManager
Removes the channel with the specified local ID from the list of open channels.
removeOpenChannel(OpenChannel) - Method in interface jssh.IProtocolHandler
Deregisters an open SSH chanel.
RSAAlgorithm - class jssh.RSAAlgorithm.
This class provides static methods that implement RSA encryption.
RSAAlgorithm() - Constructor for class jssh.RSAAlgorithm
 
RSAPrivateKey - class jssh.RSAPrivateKey.
This class represents an SSH RSA private key.
RSAPrivateKey(byte[], byte[], String) - Constructor for class jssh.RSAPrivateKey
 
RSAPrivateKeyFile - class jssh.RSAPrivateKeyFile.
This class encapsulates the properties and behaviour of an SSH RSA private-key file.
RSAPrivateKeyFile(String) - Constructor for class jssh.RSAPrivateKeyFile
Constructor
RSAPublicKey - class jssh.RSAPublicKey.
This class represents an RSA public key.
RSAPublicKey(byte[], byte[]) - Constructor for class jssh.RSAPublicKey
 
run() - Method in class jssh.ClientProtocolHandler
This method runs in a separate thread, and handles the sending of SSH protocol packets to the SSH server.
run() - Method in class jssh.OpenChannel
 
run() - Method in class jssh.Channel
Implements the Runnable interface.

S

sendSessionKey(ITrueRandom) - Method in class jssh.ClientProtocolHandler
Create and send an encrypted session key; this method must be called AFTER receiveServerKey() has returned successfully.
setCipher(Cipher) - Method in class jssh.SSHOutputStream
Set the cipher algorithm (this method must be called after the session key has been exchanged and the cipher type has been negotiated).
setCipher(Cipher) - Method in class jssh.SSHInputStream
 
setCommand(String) - Method in class jssh.Options
 
setCompression() - Method in class jssh.SSHInputStream
 
setCompression(boolean) - Method in class jssh.Options
 
setCompression(int) - Method in class jssh.SSHOutputStream
Set the compression level (by default compression is off).
setDebug(boolean) - Method in class jssh.Options
 
setHostname(String) - Method in class jssh.Options
 
setIdentityFile(String) - Method in class jssh.Options
 
setInput(byte[]) - Method in class jssh.GZDeflater
Sets input data for compression
setInput(byte[]) - Method in class jssh.GZInflater
Sets input data for uncompression.
setInput(byte[], int, int) - Method in class jssh.GZDeflater
Sets input data for compression
setInput(byte[], int, int) - Method in class jssh.GZInflater
Sets input data for uncompression.
setLocalChannelNumber(int) - Method in class jssh.OpenChannel
 
setPort(int) - Method in class jssh.Options
 
setTerminalSize(int, int) - Method in class jssh.Options
 
setTerminalType(String) - Method in class jssh.Options
Set the terminal-type string that will be sent in the SSH_CMSG_REQUEST_PTY packet.
setUser(String) - Method in class jssh.Options
 
SMSG_AUTH_RSA_CHALLENGE - class jssh.SMSG_AUTH_RSA_CHALLENGE.
Sent by the server in response to a SSH_CMSG_AUTH_RSA message from the client.
SMSG_AUTH_RSA_CHALLENGE(byte[]) - Constructor for class jssh.SMSG_AUTH_RSA_CHALLENGE
Use this constructor when receiving a SMSG_AUTH_RSA_CHALLENGE packet on the network.
SMSG_EXITSTATUS - class jssh.SMSG_EXITSTATUS.
Returns the exit status of the shell or program after it has exited.
SMSG_EXITSTATUS(byte[]) - Constructor for class jssh.SMSG_EXITSTATUS
 
SMSG_FAILURE - class jssh.SMSG_FAILURE.
Sent by the server in response to a failed authentication operation to indicate that the user has not yet been successfuly authenticated, and in response to a failed preparatory operation.
SMSG_FAILURE(byte[]) - Constructor for class jssh.SMSG_FAILURE
 
SMSG_PUBLIC_KEY - class jssh.SMSG_PUBLIC_KEY.
Sent as the first message by the server.
SMSG_PUBLIC_KEY(byte[]) - Constructor for class jssh.SMSG_PUBLIC_KEY
Use this constructor when receiving a SMSG_PUBLIC_KEY packet on the network.
SMSG_STDERR_DATA - class jssh.SMSG_STDERR_DATA.
Delivers data from the server that was read from the standard error stream of the shell or program running on the server side.
SMSG_STDERR_DATA(byte[]) - Constructor for class jssh.SMSG_STDERR_DATA
Use this constructor when receiving a packet from the network.
SMSG_STDERR_DATA(String) - Constructor for class jssh.SMSG_STDERR_DATA
Use this constructor when constructing a packet that must be sent to STDERR as though it came from the server.
SMSG_STDOUT_DATA - class jssh.SMSG_STDOUT_DATA.
Delivers data from the server that was read from the standard output of the shell or program running on the server side.
SMSG_STDOUT_DATA(byte[]) - Constructor for class jssh.SMSG_STDOUT_DATA
 
SMSG_SUCCESS - class jssh.SMSG_SUCCESS.
This message is sent by the server in response to the session key, a successful authentication request, and a successfully completed preparatory operation.
SMSG_SUCCESS(byte[]) - Constructor for class jssh.SMSG_SUCCESS
 
SSH_CMSG_AUTH_PASSWORD - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_AUTH_RSA - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_AUTH_RSA_RESPONSE - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_EOF - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_EXEC_CMD - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_EXEC_SHELL - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_EXIT_CONFIRMATION - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_PORT_FORWARD_REQUEST - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_REQUEST_COMPRESSION - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_REQUEST_PTY - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_SESSION_KEY - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_STDIN_DATA - Static variable in interface jssh.IPacketConstants
 
SSH_CMSG_USER - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_CHANNEL_CLOSE - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_CHANNEL_CLOSE_CONFIRMATION - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_CHANNEL_DATA - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_CHANNEL_OPEN_CONFIRMATION - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_CHANNEL_OPEN_FAILURE - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_DEBUG - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_DISCONNECT - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_IGNORE - Static variable in interface jssh.IPacketConstants
 
SSH_MSG_PORT_OPEN - Static variable in interface jssh.IPacketConstants
 
SSH_SMSG_AUTH_RSA_CHALLENGE - Static variable in interface jssh.IPacketConstants
 
SSH_SMSG_EXITSTATUS - Static variable in interface jssh.IPacketConstants
 
SSH_SMSG_FAILURE - Static variable in interface jssh.IPacketConstants
 
SSH_SMSG_PUBLIC_KEY - Static variable in interface jssh.IPacketConstants
 
SSH_SMSG_STDERR_DATA - Static variable in interface jssh.IPacketConstants
 
SSH_SMSG_STDOUT_DATA - Static variable in interface jssh.IPacketConstants
 
SSH_SMSG_SUCCESS - Static variable in interface jssh.IPacketConstants
 
SSHAuthFailedException - exception jssh.SSHAuthFailedException.
This exception is thrown when the server refuses to authenticate the client.
SSHAuthFailedException() - Constructor for class jssh.SSHAuthFailedException
 
SSHAuthFailedException(String) - Constructor for class jssh.SSHAuthFailedException
 
SSHClient - class jssh.SSHClient.
This is an example of a program that uses the JSSH library to connect to a remote host using the SSH protocol (version 1.5).
SSHClient(Options) - Constructor for class jssh.SSHClient
Constructor
SSHInputStream - class jssh.SSHInputStream.
This class allows the application to read SSH packets from a network socket.
SSHInputStream(InputStream) - Constructor for class jssh.SSHInputStream
Constructor
SSHMisc - class jssh.SSHMisc.
This class provides miscellaneous static methods for use in the Java SSH Client.
SSHMisc() - Constructor for class jssh.SSHMisc
 
SSHOutputStream - class jssh.SSHOutputStream.
This class allows the application to write SSH packets to a network socket.
SSHOutputStream(OutputStream) - Constructor for class jssh.SSHOutputStream
Constructor
SSHProtocolException - exception jssh.SSHProtocolException.
This exception is thrown when an unexpected packet-type is received, or some other protocol error occurs.
SSHProtocolException(String) - Constructor for class jssh.SSHProtocolException
 
SSHSetupException - exception jssh.SSHSetupException.
This exception is thrown when the client and server cannot agree on the connection parameters.
SSHSetupException(String) - Constructor for class jssh.SSHSetupException
 
STDIN_OutputStream - class jssh.STDIN_OutputStream.
This class provides an "OutputStream" interface for writing keystrokes from the terminal keyboard, and puts them onto a queue from which they are read by the SSH protocol handler.
STDIN_OutputStream(IProtocolHandler) - Constructor for class jssh.STDIN_OutputStream
 
STDOUT_InputStream - class jssh.STDOUT_InputStream.
This class receives SSH_SMSG_STDOUT_DATA packets on its input queue, and makes the received data available via an InputStream interface.
STDOUT_InputStream() - Constructor for class jssh.STDOUT_InputStream
Constructor
string2Bytes(String) - Static method in class jssh.SSHOutputStream
Encode a String as a byte-array for insertion into an SSH packet.
stripPKCSPadding(byte[]) - Static method in class jssh.RSAAlgorithm
 

T

TTY_OP_END - Static variable in class jssh.CMSG_REQUEST_PTY
 

V

VDSUSP - Static variable in class jssh.CMSG_REQUEST_PTY
 
VEOF - Static variable in class jssh.CMSG_REQUEST_PTY
 
VEOL - Static variable in class jssh.CMSG_REQUEST_PTY
 
VEOL2 - Static variable in class jssh.CMSG_REQUEST_PTY
 
VERASE - Static variable in class jssh.CMSG_REQUEST_PTY
 
VINTR - Static variable in class jssh.CMSG_REQUEST_PTY
 
VKILL - Static variable in class jssh.CMSG_REQUEST_PTY
 
VLNEXT - Static variable in class jssh.CMSG_REQUEST_PTY
 
VQUIT - Static variable in class jssh.CMSG_REQUEST_PTY
 
VREPRINT - Static variable in class jssh.CMSG_REQUEST_PTY
 
VSTART - Static variable in class jssh.CMSG_REQUEST_PTY
 
VSTOP - Static variable in class jssh.CMSG_REQUEST_PTY
 
VSUSP - Static variable in class jssh.CMSG_REQUEST_PTY
 
VWERASE - Static variable in class jssh.CMSG_REQUEST_PTY
 

W

write(byte[]) - Method in class jssh.STDIN_OutputStream
 
write(int) - Method in class jssh.STDIN_OutputStream
 
writePacket(Packet) - Method in class jssh.SSHOutputStream
 

X

XORByteArrays(byte[], byte[]) - Static method in class jssh.SSHMisc
Returns a new byte array of the same size as the byte arrays supplied.

Z

Z_PARTIAL_FLUSH - Static variable in class jssh.GZDeflater
 
Z_PARTIAL_FLUSH - Static variable in class jssh.GZInflater
 

_

_data - Variable in class jssh.Packet
This byte array represents the data block, EXCLUDING the padding bytes and the CRC (in other words, it contains just the packet-type byte and the binary data bytes).
_in - Variable in class jssh.DevRandom
 

A C D E F G H I J K M N O P R S T V W X Z _