class

Crypto::SSHKey

Inherits Reference / Object

Constants

SSH2_LINE_LENGTH = 70
SSH_CONVERSION = {"rsa" => ["e", "n"], "dsa" => ["p", "q", "g", "pub_key"]}
SSH_TYPES = {"ssh-rsa" => "rsa", "ssh-dss" => "dsa", "ssh-ed25519" => "ed25519", "ecdsa-sha2-nistp256" => "ecdsa", "ecdsa-sha2-nistp384" => "ecdsa", "ecdsa-sha2-nistp521" => "ecdsa"}
SSHFP_TYPES = {"rsa" => 1, "dsa" => 2, "ecdsa" => 3, "ed25519" => 4}

Constructors

new(private_key : PrivateKey, passphrase : String | Nil = nil, comment : String | Nil = nil, directives : Array(String) | Nil = nil)
Source

Instance methods

comment

Comment to use for the public key

Source
comment=(comment : String)

Comment to use for the public key

Source
directives

Options prefixed to the public key

Source
directives=(directives : Array(String))

Options prefixed to the public key

Source
passphrase

If the key is encrypted, supply the passphrase

Source
passphrase=(passphrase : String | Nil)

If the key is encrypted, supply the passphrase

Source