Skip to content

Instantly share code, notes, and snippets.

@riton
Created October 10, 2017 21:21
Show Gist options
  • Save riton/41b68354c8a7394214a81dd4bd24030e to your computer and use it in GitHub Desktop.
Save riton/41b68354c8a7394214a81dd4bd24030e to your computer and use it in GitHub Desktop.
bolt ssh GSS-API hack
diff --git a/.bundle/ruby/2.3.0/gems/bolt-0.5.0/lib/bolt/node/ssh.rb b/.bundle/ruby/2.3.0/gems/bolt-0.5.0/lib/bolt/node/ssh.rb
index d4b33ea..ffd7168 100644
--- a/.bundle/ruby/2.3.0/gems/bolt-0.5.0/lib/bolt/node/ssh.rb
+++ b/.bundle/ruby/2.3.0/gems/bolt-0.5.0/lib/bolt/node/ssh.rb
@@ -1,4 +1,5 @@
require 'net/ssh'
+require 'net/ssh/krb'
require 'net/sftp'
require 'json'
require 'bolt/node/result'
@@ -10,6 +11,7 @@ module Bolt
non_interactive: true }
options[:port] = @port if @port
options[:password] = @password if @password
+ options[:auth_methods] = %w(gssapi-with-mic publickey password keyboard-interactive)
@session = Net::SSH.start(@host, @user, options)
@logger.debug { "Opened session" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment