class Net::SSH::Transport::Kex::Abstract

def matching?(key_ssh_type, host_key_alg)

def matching?(key_ssh_type, host_key_alg)
  return true if key_ssh_type == host_key_alg
  return true if key_ssh_type == 'ssh-rsa' && ['rsa-sha2-512', 'rsa-sha2-256'].include?(host_key_alg)
end