Package com.mindbright.ssh2

Implements the secure shell version 2 protocol suite.

See:
          Description

Interface Summary
SSH2AuthModule Defines an authentication module implementing an authentication method (as defined in the userauth protocol spec).
SSH2ChannelCloseListener An interface for classes which want to be notified when a channel is closed.
SSH2ConnectionEventHandler This interface is an event callback interface used to monitor the connection layer of an ssh2 connection.
SSH2Interactor This interface defines the different types of prompts which are needed for interactive authentication.
SSH2PKISigner This interface is a simple abstraction of a PKI signing mechanism.
SSH2SFTP.AsyncListener An interface implemented by FTP controllers which want progress reports.
SSH2StreamFilter Filers which operate on SSH datastreams.
SSH2StreamFilterFactory An interfaces for classes which creates instances of classes which implements SSH2StreamFiler.
SSH2TerminalAdapter Glue interface implemented by terminal windows to handle the interaction with the underlying SSH2Session.
SSH2TransportEventHandler This interface is an event callback interface used to monitor the transport layer of an ssh2 connection.
 

Class Summary
SSH2 Contains basic protocol constants and some identification strings.
SSH2Authenticator This is the base class for an "authenticator" representing a user and the methods available to authenticate that user.
SSH2AuthGSS This class implements a module for GSS API user authentication as defined in RFC 4462.
SSH2AuthHostBased This class implements a module for publickey authentication as defined in the userauth protocol spec.
SSH2AuthKbdInteract This class implements a module for keyboard-interactive authentication as defined in the auth-kbdinteract protocol spec.
SSH2AuthPassword This class implements a module for password authentication as defined in the userauth protocol spec.
SSH2AuthPublicKey This class implements a module for publickey authentication as defined in the userauth protocol spec.
SSH2AuthSSHComSecurID This class implements a module for SecurID authentication as defined by SSH Inc as the 'local' method 'securid-1@ssh.com'.
SSH2Channel This is the abstract base class for all channels as defined in the connection protocol spec.
SSH2Compressor This is the abstract base class for compressors which compress/uncompress the ssh stream.
SSH2CompressorZLib Implements the zlib compression algorithm as described in the ssh protocol draft.
SSH2CompressorZLibOpenSSH Implements the zlib@openssh.com compression algorithm a implemented in OpenSSH 4.2p1.
SSH2Connection This class implements the connection layer of the secure shell version 2 (ssh2) protocol stack.
SSH2ConnectionEventAdapter This class is an adapter for the interface SSH2ConnectionEventHandler.
SSH2Connector This class takes care of all incoming CHANNEL_OPEN messages.
SSH2ConsoleRemote This class implements a console to a remote command or shell.
SSH2DataBuffer This class implements a read/write buffer with all protocol specific formatting (as defined in the architecture spec.).
SSH2DSS Implements "ssh-dss" signatures according to the ssh standard.
SSH2FTPOverSFTP Implements a proxy which proxies between an ftp client and an sftp server.
SSH2FTPProxyFilter Implements support for FTP over SSH.
SSH2HostKeyVerifier This class is an adapter for the interface SSH2TransportEventHandler.
SSH2InternalChannel Implements an internal channel which is connected ot a pair of pipes.
SSH2KEXDHGroup14SHA1 Implements diffie hellman key exchange using a predefined group.
SSH2KEXDHGroup1SHA1 Implements diffie hellman key exchange using a predefined group.
SSH2KEXDHGroupNumSHA1 Base class for diffie hellman key exchange using predefined groups.
SSH2KEXDHGroupXSHA1 Implements diffie hellman key exchange with group negotiation.
SSH2KEXDHGroupXSHA256 Implements diffie hellman key exchange with group negotiation.
SSH2KeyExchanger Base class for implementing ssh key exchange algorithms.
SSH2KeyFingerprint Contains static methods for calculating fingerprints on keys.
SSH2KeyPairFile This class implements the file formats commonly used for storing key pairs for public key authentication.
SSH2KeyPairFile.PEMDSAPrivate Handles PEM encoding of a DSA key.
SSH2Listener This class accepts connections to a single address/port pair for creating channels through port forwards.
SSH2ListUtil Util class for manipulating commaseparated lists.
SSH2Preferences This class is a container for all protocol preferences and the packet version used in the class SSH2Transport.
SSH2ProcChannel This is a subclass of SSH2StreamChannel which implements channels which are connected to a local process
SSH2PublicKeyFile This class implements the file formats commonly used for storing public keys for public key authentication.
SSH2PuttyKeyFile This class implements support for reading the PuTTY key file format.
SSH2RetryingTCPChannel A subclass of SSH2TCPChannel which retries the open if it fails.
SSH2RSA Implements "ssh-rsa" signatures according to the ssh standard.
SSH2SCP1Client Creates a window in which gives us a command-line interface to scp1.
SSH2SCP1Factory Factory which creates SSHFileTransfer objects which use the scp1 protocol.
SSH2SessionChannel This class implements session channels as defined in the connection protocol spec.
SSH2SFTP Describes the sftp protocol.
SSH2SFTP.FileAttributes Class describing the different file attributes.
SSH2SFTP.FileHandle Describes a file.
SSH2SFTP.FileSystemAttributes Class describing the different file system attributes.
SSH2SFTP.SFTPPacket Handles sftp data packets.
SSH2SFTPClient Implements the client side of the sftp protocol.
SSH2SFTPFactory Factory which creates new SSH2SFTPTransfer instances.
SSH2SFTPFileBrowser Implements a file browser which browses files through an SFTP connection.
SSH2SFTPTransfer Convenience class for transferring files to and from the server.
SSH2Signature Abstract base class for classes implementing the ssh2 signature algorithms.
SSH2SimpleClient This class implements the most basic variant of a ssh2 client.
SSH2SimpleSFTPShell This class implements a basic interactive sftp session.
SSH2SimpleSFTPShell.ProgressBar Class implementing a progress bar which gets printed in a terminal window.
SSH2SimpleSignature Handle signatures for the ssh draft standard algorithms.
SSH2SocksChannel This class together with SSH2SocksListener implements a simple SOCKS proxy server that open port forwards for each CONNECT packet.
SSH2SocksListener This class together with SSH2SocksChannel implements a simple SOCKS proxy server that open port forwards for each CONNECT packet.
SSH2StreamChannel Class implementing streams-based channels.
SSH2StreamSniffer Sniffer class which dumps a copy of all data transmitted.
SSH2TCPChannel This is a subclass of SSH2StreamChannel which implements channels which are connected to TCP streams at both ends.
SSH2TelnetProxyListener Implements a simple telnet proxy.
SSH2TerminalAdapterImpl Adapter class which interfaces between terminal windows and ssh2.
SSH2Transport This class implements the transport layer of the secure shell version 2 (ssh2) protocol stack.
SSH2Transport.TranceiverContext Context for transport tranceiver/receiver.
SSH2TransportEventAdapter This class is an adapter for the interface SSH2TransportEventHandler.
SSH2TransportPDU Handles one packet data unit.
SSH2TransportPDUPool Implements a pool of PDUs which can be reused.
SSH2UserAuth This class implements the user authentication layer of the secure shell version 2 (ssh2) protocol stack.
SSH2X11Filter Implements a stream filter which handles the X11 authentication cookie replacement.
 

Exception Summary
SSH2AccessDeniedException  
SSH2CompressionException  
SSH2ConnectException  
SSH2CorruptPacketException  
SSH2EOFException  
SSH2Exception  
SSH2FatalException  
SSH2KEXFailedException  
SSH2MacCheckException  
SSH2SFTP.SFTPAsyncAbortException  
SSH2SFTP.SFTPDisconnectException  
SSH2SFTP.SFTPEOFException  
SSH2SFTP.SFTPException An exception in the SFTP code.
SSH2SFTP.SFTPFailureException  
SSH2SFTP.SFTPNoSuchFileException  
SSH2SFTP.SFTPPermissionDeniedException  
SSH2SFTP.SFTPUnsupportedException  
SSH2SignatureException  
SSH2UserCancelException  
SSH2VersionNegotiationException  
 

Package com.mindbright.ssh2 Description

Implements the secure shell version 2 protocol suite. In here is all classes implementing the different parts of the full ssh2 protocol stack including filetransfer. The classes SSH2Transport, SSH2UserAuth, and SSH2Connection are central to the whole implementation, this is where you want to start looking for how things works. There are two classes available which makes a good quick start, these are SSH2SimpleClient and SSH2ConsoleRemote. They provide the basic functionality for connecting to an ssh2 server and run single commands and/or an interactive shell. Together with an understanding of the class SSH2Connection one can utilize all basic functions of the full API.