Created
October 10, 2017 21:21
-
-
Save riton/41b68354c8a7394214a81dd4bd24030e to your computer and use it in GitHub Desktop.
bolt ssh GSS-API hack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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