aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-11 16:31:20 -0700
committerelijah <elijah@riseup.net>2013-06-11 16:31:20 -0700
commit638642f464823a2cbc263c97014e737ed528b790 (patch)
tree3e285d4b11ae6793618a35b4f8a8bdb8235f56ed
parent0c8bfcde8f840d24d35b189e92787672e5a18b1b (diff)
downloadleap_cli-638642f464823a2cbc263c97014e737ed528b790.tar.gz
leap_cli-638642f464823a2cbc263c97014e737ed528b790.tar.bz2
don't assume ssh keys will be RSA.
-rw-r--r--lib/leap_cli/ssh_key.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/ssh_key.rb b/lib/leap_cli/ssh_key.rb
index daa8bf0..4b3c985 100644
--- a/lib/leap_cli/ssh_key.rb
+++ b/lib/leap_cli/ssh_key.rb
@@ -112,7 +112,8 @@ module LeapCli
def ==(other_key)
return false if other_key.nil?
- self.params == other_key.params
+ return false if self.class != other_key.class
+ return self.to_text == other_key.to_text
end
def in_known_hosts?(*identifiers)