-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inspec exec doesn't work for SSH #1361
Comments
@anniehedgpeth Are you able to log into the machine via |
It also looks like you used your public key instead of the private key: |
I was. I deleted that machine, though, so I'm going to try another. Michael told me to use public - ha. I'll change that, too. eta: was misunderstanding about pub vs private, but I get it now - thanks |
The public key must be set in If you use
|
Awesome, that works. Thanks so much, @chris-rock !!!! |
Seems like just getting it to work with an SSH key is hardly a fix to the issue where a password isn't working. Does the inspec verifier not support SSH with passwords? I'm able to ssh into the host with username and password, but inspec command doesn't work with username and password. |
@lilmansplace InSpec works with username and password with no issue. Please open a new issue for that case |
@chris-rock - Done: #1970 |
Description
I'm giving a presentation on InSpec tonight and can't run a test on a remote host.
InSpec and Platform Version
InSpec version 1.7.2
OS X El Capitan
Version 10.11.6
Replication Case
With my Azure vm running, I ran an
inspec exec
command to run a profile from github to an Azure vm by ssh'ing into it, and it would not allow me. I was, however, able to run my github profile locally.Possible Solutions
Could I have two different versions of InSpec installed? If so, how do I direct the path to the InSpec version that I want to use (the latest version)?
Stacktrace
#With password
#Without password
#With key
The text was updated successfully, but these errors were encountered: