Method: RHC::Rest::Key#visible_to_ssh?

Defined in:
lib/rhc/rest/key.rb

#visible_to_ssh?Boolean

Returns:

  • (Boolean)


38
39
40
41
# File 'lib/rhc/rest/key.rb', line 38

def visible_to_ssh?
  is_ssh? and Net::SSH::Authentication::Agent.connect.identities.
    find{ |i| fingerprint == i.fingerprint }.present? rescue false
end