Parent

Included Modules

Methods

class Net::SSH::Transport::Algorithms

Implements the higher-level logic behind an SSH key-exchange. It handles both the initial
exchange, as well as subsequent re-exchanges (as needed). It also
encapsulates the negotiation of the algorithms, and provides a single point
of access to the negotiated algorithms.

You will never instantiate or reference this directly. It is used
internally by the transport layer.

Constants

ALGORITHMS

Define the default algorithms, in order of preference, supported by Net::SSH.

Attributes

algorithms[R]

The hash of algorithms preferred by the client, which will be told to the
server during algorithm negotiation.

compression_client[R]

The type of compression to use to compress packets being sent by the
client.

compression_server[R]

The type of compression to use to decompress packets arriving from the
server.

encryption_client[R]

The type of the cipher to use to encrypt packets sent from the client to
the server.

encryption_server[R]

The type of the cipher to use to decrypt packets arriving from the server.

Called by the transport layer when a KEXINIT packet is received, indicating
that the server wants to exchange keys. This can be spontaneous, or it can
be in response to a client-initiated rekey request (see rekey!). Either way, this will
block until the key exchange completes.

Returns true if a key-exchange is pending. This will be true
from the moment either the client or server requests the key exchange,
until the exchange completes. While an exchange is pending, only a limited
number of packets are allowed, so event processing essentially stops during
this period.

Request a rekey operation. This will return immediately, and does not
actually perform the rekey operation. It does cause the session to change
state, however–until the key exchange finishes, no new packets will be
processed.