bugfix: ensure pseudo pty on remote

This first came up when scanning a RHEL6 EC2 box. Serverspec throws this error when the channel doesn't support a stdin.

Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
Dominik Richter 2015-07-21 12:41:19 +02:00
parent 5d4e44872c
commit 35d3ee6b19

View file

@ -18,6 +18,8 @@ if ENV['SSH_SPEC']
set :sudo_options, ENV['SUDO_OPTIONS']
end
set :request_pty, true
RSpec.configure do |c|
options = {}
c.sudo_password = ENV['SUDO_PASSWORD'] || ENV['sudo_password']