Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def authkey
- - File.read("#{ENV['HOME']}/.ssh/id_rsa.pub")
- + %w( rsa dsa ).each do |key_type|
- + key = "#{ENV['HOME']}/.ssh/id_#{key_type}.pub"
- + return File.read(key) if File.exists?(key)
- + end
- end
Add Comment
Please, Sign In to add comment