Sha256: bd281de71c57fd258d585093fab1f9714feb4c027ff7383eb0195ea9f86ac71e

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 Bytes

Contents

# fool vagrant into using ssh-agent keys instead of a fixed key on file
module Vagrant
  module Util
    class Platform
      def self.solaris?
        true
      end
    end
  end
end

require "net/ssh"

module Net::SSH
  class << self
    alias_method :old_start, :start
    
    def start(host, username, opts)
      opts[:keys_only] = false
      self.old_start(host, username, opts)
    end
  end
end 

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vagrant-shell-0.2.22 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.21 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.20 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.19 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.17 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.16 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.14 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.13 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.12 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.9 lib/vagrant-shell/ssh-agent.rb
vagrant-shell-0.2.8 lib/vagrant-shell/ssh-agent.rb