mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
Merge pull request #4238 from inspec/ja/add-domain-winrm-examples
Add CLI target examples for Windows domain users
This commit is contained in:
commit
3b8aa8ee3d
2 changed files with 6 additions and 2 deletions
|
@ -31,15 +31,18 @@ Chef InSpec makes it easy to run your tests wherever you need. More options are
|
|||
# run test locally
|
||||
inspec exec test.rb
|
||||
|
||||
# run test on remote host on SSH
|
||||
# run test on remote host via SSH
|
||||
inspec exec test.rb -t ssh://user@hostname -i /path/to/key
|
||||
|
||||
# run test on remote host using SSH agent private key authentication. Requires Chef InSpec 1.7.1
|
||||
inspec exec test.rb -t ssh://user@hostname
|
||||
|
||||
# run test on remote windows host on WinRM
|
||||
# run test on remote windows host via WinRM
|
||||
inspec exec test.rb -t winrm://Administrator@windowshost --password 'your-password'
|
||||
|
||||
# run test on remote windows host via WinRM as a domain user
|
||||
inspec exec test.rb -t winrm://windowshost --user 'UserName@domain' --password 'your-password'
|
||||
|
||||
# run test on docker container
|
||||
inspec exec test.rb -t docker://container_id
|
||||
```
|
||||
|
|
|
@ -39,6 +39,7 @@ path, `--ssl` to use SSL for transport layer encryption.
|
|||
$ inspec shell -t ssh://root@192.168.64.2:11022 # Login to remote machine using ssh as root.
|
||||
$ inspec shell -t ssh://user@hostname:1234 -i /path/to/user_key # Login to hostname on port 1234 as user using given ssh key.
|
||||
$ inspec shell -t winrm://UserName:Password@windowsmachine:1234 # Login to windowsmachine over WinRM as UserName.
|
||||
$ inspec shell -t winrm://windowsmachine --user 'UserName@domain' --password 'Secret123!' # Login to windowsmachine as UserName@domain.org.
|
||||
$ inspec shell -t docker://container_id # Login to a Docker container.
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue