Class: Net::SSH::Test::Kex

Class | Net::SSH::Test::Kex
In: | lib/net/ssh/test/kex.rb
Parent: | Object

An implementation of a key-exchange strategy specifically for unit tests. (This strategy would never really work against a real SSH server—it makes too many assumptions about the server‘s response.)

This registers itself with the transport key-exchange system as the "test" algorithm.

### Methods

exchange_keys new

### Included Modules

Net::SSH::Transport::Constants

### Public Class methods

new(algorithms, connection, data)

Creates a new instance of the testing key-exchange algorithm with the given arguments.

### Public Instance methods

exchange_keys()

Exchange keys with the server. This returns a hash of constant values, and does not actually exchange keys.

[Validate]