Module | RHC::SSHKeyHelpers |
In: |
lib/rhc/ssh_key_helpers.rb
|
Public: Format SSH key‘s core attributes (name, type, fingerprint) in a given ERB template
key - an object to be formatted template - ERB template
Public: Generate an SSH key and store it in ~/.ssh/id_rsa
type - The String type RSA or DSS. bits - The Integer value for number of bits. comment - The String comment for the key
Examples
generate_ssh_key_ruby() # => /home/user/.ssh/id_rsa.pub
Returns nil on failure or public key location as a String on success
for an SSH public key specified by ‘key’, return a triple [type, content, comment] which is basically the space-separated list of the SSH public key content