[RESOLVED] How can we run inspec file in Remote Machine(Linux) from workstation

Hi Folks,

We need to validate some files in remote machine.So how can we run inspec test cases in that machine without “USER Name and PASSWORD”. Is there any way to run inspec file with bootstrapped name.

I’m aware with the commnad --> inspec exec testing.rb -t ssh://user@hostname -i /path/to/key --password ‘your-password’ --sudo and it works fine…but for me user name and password is a constraint.

You can use the -i option to pass a key which works similar to ssh -i /path/to/key. In this case no password is required.