Open herz0g opened 4 years ago
I had to remove my password for the key file, after that I was able to use the -i argument and got my key accepted. But it isn't working with my config file or ssh-add. Booth ways are ignored when I run chef-run. I think chef-run don't search for the config file in ~.ssh\config, seems that it is try to find the keys within another path?
Also:
added my key with ssh-add after enabling ssh-agent -> not working, same error like above
added the key file with argument -i for chef-run -> error:
2019-11-25 21:56:20 +0100: Error encountered while running the following:
mailsrv -i C:\Users\chg\.ssh\id_rsa default.rb
Backtrace:
Caused by: Train::Transports::SSHFailed: SSH command failed (the given identity is known, but the private key could not be loaded: OpenSSL::PKey::PKeyError (Could not parse PKey: no start line))
Hello @herz0g - Thank you for reporting this issue, we have confirmed that this is a bug and we will investigate what are the complication on Windows systems. We will keep you posted of any discovery or fixes we do.
Description
Hi, when I start chef-run I got error messages that my ssh config file isn't setup correctly. I have a ssh config file in my home folder which one is working if I use build-in ssh - it will connect to the definied server and ask for the definied key within my config file:
But it is not working if I use chef-run:
Where do chef-run search for the config file?
Chef Workstation Version
Chef Workstation version: 0.11.21 Chef Infra Client version: 15.4.45 Chef InSpec version: 4.18.0 Chef CLI version: 2.0.0 Test Kitchen version: 2.3.4 Cookstyle version: 5.10.13 chef-run: 0.4.6
Platform Version
Windows 10 Pro (1909)
stack-trace: