Add -i to ssh example, link to cli options

This commit is contained in:
Victoria Jeffrey 2016-04-11 14:08:02 -04:00 committed by Christoph Hartmann
parent 1e5209fb0b
commit f9e7d530dd

View file

@ -18,14 +18,14 @@ describe inetd_conf do
end end
``` ```
InSpec makes it easy to run your tests wherever you need. InSpec makes it easy to run your tests wherever you need. More options listed here: https://github.com/chef/inspec/blob/master/docs/ctl_inspec.rst
```bash ```bash
# run test locally # run test locally
inspec exec test.rb inspec exec test.rb
# run test on remote host on SSH # run test on remote host on SSH
inspec exec test.rb -t ssh://user@hostname inspec exec test.rb -t ssh://user@hostname -i /path/to/key
# run test on remote windows host on WinRM # run test on remote windows host on WinRM
inspec exec test.rb -t winrm://Administrator@windowshost --password 'your-password' inspec exec test.rb -t winrm://Administrator@windowshost --password 'your-password'