class

Net::SSH::SSHKey

Inherits Reference < Object

Constructors

load_public_key(path : String) : SSHKey

Из pub-файла или pub-строки "ssh-ed25519 AAAA... comment".

Source
new(ssh_type : String, blob : Bytes, comment : String | Nil = nil)
Source
parse(pub_line : String) : SSHKey
Source

Class methods

load_private_key(path : String)
Source

Instance methods

bits
Source
blob
Source
comment
Source
fingerprint_md5

ssh-keygen -l (MD5): "0b:20:6a:..."

Source
fingerprint_sha256

ssh-keygen -l (SHA256, без префикса): base64 (std, без паддинга убирать не нужно — ssh-keygen оставляет "=")

Source
ssh_keygen_l

Полная строка "256 SHA256:... comment"

Source
ssh_type
Source