Class | RHC::Vendor::SSHKey |
In: |
lib/rhc/vendor/sshkey.rb
|
Parent: | Object |
SSH_TYPES | = | {"rsa" => "ssh-rsa", "dsa" => "ssh-dss"} |
SSH_CONVERSION | = | {"rsa" => ["e", "n"], "dsa" => ["p", "q", "g", "pub_key"]} |
md5_fingerprint | -> | fingerprint |
comment | [R] | |
key_object | [R] | |
passphrase | [RW] | |
type | [R] |
Generate a new keypair and return an SSHKey object
The default behavior when providing no options will generate a 2048-bit RSA keypair.
Validate an existing SSH public key
Returns true or false depending on the validity of the public key provided
Fetch the encrypted RSA/DSA private key using the passphrase provided
If no passphrase is set, returns the unencrypted private key
Fetch the RSA/DSA private key
rsa_private_key and dsa_private_key are aliased for backward compatibility
Fetch the RSA/DSA public key
rsa_public_key and dsa_public_key are aliased for backward compatibility