diff options
Diffstat (limited to 'test_server.rb')
-rw-r--r-- | test_server.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test_server.rb b/test_server.rb index af24980..012960a 100644 --- a/test_server.rb +++ b/test_server.rb @@ -18,10 +18,6 @@ puts "Setting up server keys..." server_keys = Net::SSH::Server::Keys.new(logger: logger, server_keys_directory: '.') server_keys.load_or_generate -puts "Precomputing dh keys..." -key_sizes = [1024] -server_dhs = Hash[key_sizes.map {|i| [i,OpenSSL::PKey::DH.new(i)]}] - puts "Listening on port #{PORT}..." Thread.start do server = TCPServer.new PORT @@ -35,7 +31,6 @@ Thread.start do options[:host_key] = server_keys.types options[:kex] = ['diffie-hellman-group-exchange-sha256'] options[:hmac] = ['hmac-md5'] - options[:server_dh] = server_dhs session = Net::SSH::Transport::ServerSession.new(client,options) session.run_loop do |connection| connection.on_open_channel('session') do |session, channel, packet| |