Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/itamae/backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ def ssh_options
password = STDIN.noecho(&:gets).strip
print "\n"
opts.merge!(password: password)
else
opts.merge!(keys_only: true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please set keys_only: true only if @options[:key] is set.

Copy link
Author

@dnlmengs dnlmengs Dec 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @ryotarai, this is going to work when setting the key via command line but it is going to fail when the key is set by ssh config.
Is this the intended behaviour?

end

opts
Expand Down