class Net::SSH::HostKeyEntries::PubKey
regular public key entry
Public Class Methods
Source
# File lib/net/ssh/known_hosts.rb, line 12 def initialize(key, comment: nil) # rubocop:disable Lint/MissingSuper @key = key @comment = comment end
Public Instance Methods
Source
# File lib/net/ssh/known_hosts.rb, line 29 def __getobj__ Kernel.warn("Calling Net::SSH::Buffer methods on HostKeyEntries PubKey is deprecated") @key end
Source
# File lib/net/ssh/known_hosts.rb, line 34 def matches_key?(server_key) @key.ssh_type == server_key.ssh_type && @key.to_blob == server_key.to_blob end