Module RHC::SSHKeyHelpers
In: lib/rhc/ssh_key_helpers.rb

Methods

Public Instance methods

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

[Validate]