Adds a single public key entry to the database.
Parses the given known_hosts data and adds entries to the database.
Parses the given known_hosts file and adds entries to the database.
Adds a single public key entry to the a known_hosts file.
It is assumed that the passed handler will not execute for a long time.
AES - class ch.ethz.ssh2.crypto.cipher.
AES An implementation of the AES (Rijndael), from FIPS-197.
AES() - constructor for class ch.ethz.ssh2.crypto.cipher.
AES default constructor - 128 bit block size.
SFTP Attribute Bits for the "attrib-bits" and "attrib-bits-valid" fields
of the SFTP ATTR data type.
Permissions for the 'permissions' field in the SFTP ATTRS data type.
Types for the 'type' field in the SFTP ATTRS data type.
The attributes of this entry.
Values for the 'text-hint' field in the SFTP ATTRS data type.
After a successful connect, one has to authenticate oneself.
After a successful connect, one has to authenticate oneself.
After a successfull connect, one has to authenticate oneself.
After a successful connect, one has to authenticate oneself.
A convenience wrapper function which reads in a private key (PEM format, either DSA or RSA)
and then calls authenticateWithPublicKey(String, char[], String)
.
Cancel an earlier requested remote port forwarding.
Have the server canonicalize any given path name to an absolute path.
Contains constants that can be used to specify what conditions to wait for on
a SSH-2 channel (e.g., represented by a
Session
).
The currently used crypto algorithm for packets from to the client to the
server.
The currently used MAC algorithm for packets from to the client to the
server.
Close the connection to the SSH-2 server.
Stop TCP/IP forwarding of newly arriving connections.
Close the underlying SSH forwarding channel and free up resources.
The underlying SSH-2 channel, however not necessarily the whole connection,
has been closed.
A Connection
is used to establish an encrypted TCP/IP
connection to a SSH-2 server.
Prepares a fresh Connection
object which can then be used
to establish a connection to the specified SSH-2 server.
Prepares a fresh Connection
object which can then be used
to establish a connection to the specified SSH-2 server.
In most cases you probably do not need the information contained in here.
This method is called after the connection's underlying
socket has been closed.
A ConnectionMonitor
is used to get notified when the
underlying socket of a connection is closed.
Convert a ssh2 key-blob into a human readable bubblebabble fingerprint.
Create a file and open it for reading and writing.
Create a file and open it for reading and writing.
Create a file (truncate it if it already exists) and open it for reading and writing.
reate a file (truncate it if it already exists) and open it for reading and writing.
Generate the hashed representation of the given hostname.
Convert a ssh2 key-blob into a human readable hex fingerprint.
Create a very basic
SCPClient
that can be used to copy
files from/to the SSH-2 server.
Create a symbolic link on the server.
This is CTR mode as described in draft-ietf-secsh-newmodes-XY.txt
generate an integer based working key based on our secret key and what we
processing we are planning to do.
Download a set of files from the remote server to a local directory.
Download a file from the remote server and pipe its contents into an OutputStream
.
Download a file from the remote server to a local directory.
Unless you know what you are doing, you will never need this.
Unless you know what you are doing, you will never need this.
Unless you know what you are doing, you will never need this.
The currently used charset for filename encoding/decoding.
Get the SFTPv3Client instance which created this handle.
Returns a
ConnectionInfo
object containing the details of
the connection.
Get the name of the signal by which the process on the remote side was
stopped - if available and applicable.
Get the exit code/status from the remote command - if available.
Returns the hostname that was passed to the constructor.
Get the maximum group length.
Get the minimum group length.
Turn the POSIX permissions into a 7 digit octal representation.
Returns the port that was passed to the constructor.
Get the preferred group length.
Try to find the preferred order of hostkey algorithms for the given hostname.
Returns the negotiated SFTP protocol version between the client and the server.
After a successful connect, one has to authenticate oneself.
Get the error code sent by the server.
Get the symbolic name of the error code as given in the SFTP specs.
Get the description of the error code as given in the SFTP specs.
Get the error message sent by the server.
PacketChannelOpenConfirmation.
PacketChannelOpenFailure.
PacketChannelWindowAdjust.
PacketGlobalCancelForwardRequest.
PacketGlobalForwardRequest.
PacketKexDhGexRequestOld.
PacketOpenDirectTCPIPChannel.
PacketOpenSessionChannel.
PacketSessionExecCommand.
PacketSessionSubsystemRequest.
PacketUserauthInfoRequest.
PacketUserauthInfoResponse.
PacketUserauthRequestInteractive.
PacketUserauthRequestPassword.
PacketUserauthRequestPassword.
PacketUserauthRequestPublicKey.
Exists because StringTokenizer is not available in J2ME.
An abstract marker interface implemented by all proxy data implementations.
Create a remote file and copy the contents of the passed byte array into it.
Create a remote file and copy the contents of the passed byte array into it.
Copy a local file to a remote directory, uses mode 0600 when creating
the file on the remote side.
Copy a local file to a remote directory, uses the specified mode when
creating the file on the remote side.
Copy a local file to a remote directory, uses the specified mode and remote filename
when creating the file on the remote side.
Copy a set of local files to a remote directory, uses mode 0600 when
creating files on the remote side.
Copy a set of local files to a remote directory, uses the specified mode
when creating the files on the remote side.
A very basic SCPClient
that can be used to copy files from/to
the SSH-2 server.
The server host key that was sent during the latest key exchange.
The type of the server host key (currently either "ssh-dss" or
"ssh-rsa").
A callback interface used to implement a client specific method of checking
server host keys.
The currently used crypto algorithm for packets from to the server to the
client.
The currently used MAC algorithm for packets from to the server to the
client.
A Session
is a remote execution of a program.
Set the charset used to convert between Java Unicode Strings and byte encodings
used by the server for paths and file names.
Unless you know what you are doing, you will never need this.
Unless you know what you are doing, you will never need this.
Sets the parameters for the diffie-hellman group exchange.
Sets f and calculates the shared secret.
Used to tell the library that the connection shall be established through a proxy server.
Provide your own instance of SecureRandom.
Unless you know what you are doing, you will never need this.
Unless you know what you are doing, you will never need this.
Define the set of allowed server host key algorithms to be used for
the following key exchange operations.
Modify the attributes of a file.
Enable/disable TCP_NODELAY (disable/enable Nagle's algorithm) on the underlying socket.
Used in combination with the SFTPv3Client.
A SFTPv3Client
represents a SFTP (protocol version 3)
client connection tunnelled over a SSH-2 connection.
A SFTPv3FileAttributes
object represents detail information
about a file on the server.
SHA1 - class ch.ethz.ssh2.crypto.digest.
SHA1
SHA-1 implementation based on FIPS PUB 180-1.
SHA1() - constructor for class ch.ethz.ssh2.crypto.digest.
SHA1 size() - method in class ch.ethz.ssh2.crypto.digest.
MAC Indicates that the 'atime' field is present.
Indicates that the 'acl' field is present.
Indicates that the 'allocation-size' field is present.
Indicates that the 'attrib-bits' and 'attrib-bits-valid'
fields are present.
Indicates that the 'createtime' field is present.
Indicates that the 'ctime' field is present.
Indicates that the 'extended-count' field (and probablby some
'extensions') is present.
Opening the file without either the SSH_FXF_ACCESS_APPEND_DATA or
the SSH_FXF_ACCESS_APPEND_DATA_ATOMIC flag (see section 8.1.1.3
of the SFTP standard draft) MUST result in an
SSH_FX_INVALID_PARAMETER error.
The file should be included in backup / archive operations.
This attribute applies only to directories.
The file is stored on disk using file-system level transparent
compression.
The file is stored on disk using file-system level transparent
encryption.
File SHOULD NOT be shown to user unless specifically requested.
The file cannot be deleted or renamed, no hard link can be created
to this file, and no data can be written to the file.
The file is a sparse file; this means that file blocks that have
not been explicitly written are not stored on disk.
When the file is modified, the changes are written synchronously
to the disk.
The file is part of the operating system.
The server MAY include this bit in a directory listing or realpath
response.
The server has applied a heuristic or other mechanism and
believes has binary content, and should not be opened with the
SSH_FXF_ACCESS_TEXT_MODE flag.
The server has applied a heuristic or other mechanism and
believes that the file should be opened with the
SSH_FXF_ACCESS_TEXT_MODE flag.
The server knows the file has binary content.
The server knows the file is a text file, and should be opened
using the SSH_FXF_ACCESS_TEXT_MODE flag.
Indicates that the 'link-count' field is present.
Indicates that the 'mime-type' field is present.
Indicates that the 'mtime' field is present.
Indicates that the 'owner' and 'group' fields are present.
Indicates that the 'permissions' field is present.
Indicates that the 'allocation-size' field is present.
Indicates that additionally to the 'atime', 'createtime',
'mtime' and 'ctime' fields (if present), there is also
'atime-nseconds', 'createtime-nseconds', 'mtime-nseconds'
and 'ctime-nseconds'.
Indicates that the 'text-hint' field is present.
Indicates that the 'untranslated-name' field is present.
Indicates that the 'atime' and 'mtime' field are present
(protocol v3).
Protocol version 6:
0x00000002 was used in a previous version of this protocol.
Data is always written at the end of the file.
Data is always written at the end of the file.
If this bit is set, the above BLOCK modes are advisory.
The server MUST guarantee that no other handle has been opened
with ACE4_DELETE access, opened with the
SSH_FXF_ACCESS_DELETE_ON_CLOSE flag set, and that no other handle
will be opened with ACE4_DELETE access or with the
SSH_FXF_ACCESS_DELETE_ON_CLOSE flag set, and that the file itself
is not deleted in any other way until the client closes the handle.
The server MUST guarantee that no other handle has been opened
with ACE4_READ_DATA access, and that no other handle will be
opened with ACE4_READ_DATA access until the client closes the
handle.
The server MUST guarantee that no other handle has been opened
with ACE4_WRITE_DATA or ACE4_APPEND_DATA access, and that no other
handle will be opened with ACE4_WRITE_DATA or ACE4_APPEND_DATA
access until the client closes the handle.
The file should be deleted when the last handle to it is closed.
Disposition is a 3 bit field that controls how the file is opened.
If the final component of the path is a symlink, then the open
MUST fail, and the error SSH_FX_LINK_LOOP MUST be returned.
Indicates that the server should treat the file as text and
convert it to the canonical newline convention in use.
A new file is created; if the file already exists, the server
MUST return status SSH_FX_FILE_ALREADY_EXISTS.
A new file is created; if the file already exists, it is opened
and truncated.
An existing file is opened.
If the file exists, it is opened.
An existing file is opened and truncated.
Start a shell on the remote machine.
Start a subsystem on the remote machine.
Retrieve the file attributes of a file.
There is stderr data available that is ready to be consumed.
There is stdout data available that is ready to be consumed.
A StreamForwarder forwards data between two given streams.
A StreamGobbler
is an InputStream that uses an internal worker
thread to constantly consume input from another InputStream.