mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
bugfix: prevent entries in known hosts files
Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
parent
2e827fd699
commit
8dd5ad2979
1 changed files with 1 additions and 1 deletions
|
@ -24,8 +24,8 @@ if ENV['SSH_SPEC']
|
|||
c.host = ENV['TARGET_HOST']
|
||||
options[:port] = ( ENV['LOGIN_PORT'] || 22 ).to_i
|
||||
options[:auth_methods] = ["none"]
|
||||
options[:global_known_hosts_file ] = "/dev/null"
|
||||
options[:user_known_hosts_file ] = "/dev/null"
|
||||
options[:global_known_hosts_file ] = "/dev/null"
|
||||
options[:number_of_password_prompts] = 0
|
||||
|
||||
options[:user] = ENV['LOGIN_USERNAME'] || ENV['user'] || Etc.getlogin
|
||||
|
|
Loading…
Reference in a new issue