class Net::SSH::HostKeyEntries::PubKey
regular public key entry
def __getobj__
def __getobj__ Kernel.warn("Calling Net::SSH::Buffer methods on HostKeyEntries PubKey is deprecated") @key end
def initialize(key, comment: nil) # rubocop:disable Lint/MissingSuper
def initialize(key, comment: nil) # rubocop:disable Lint/MissingSuper @key = key @comment = comment end
def matches_key?(server_key)
def matches_key?(server_key) @key.ssh_type == server_key.ssh_type && @key.to_blob == server_key.to_blob end
def ssh_type
def ssh_type @key.ssh_type end
def ssh_types
def ssh_types [ssh_type] end
def to_blob
def to_blob @key.to_blob end