Problem:
When using remote execution with Foreman it fails with:
Authentication method ‘publickey’ failed with:
‘true’ is not recognized as an internal or external command,
operable program or batch file.
It happens on every possible run. No matter if i try to run puppet agent from the Foreman gui or if i send a script with “echo ‘hello world’” or any other template.
Expected outcome:
Remote Execution runs without error
Foreman and Proxy versions:
3.10.0
Foreman and Proxy plugin versions:
foreman_remote_execution 13.0.0
Distribution and version:
Other relevant data:
The lgos show that the ssh command ends with ‘true’ which is sent to the target shell and creates the error message.
Running: ssh -o User=foreman-proxy -o Port=22 -o IdentityFile=/var/lib/foreman-proxy/ssh/id_rsa_forem an_proxy -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new -o LogLevel=error -o ControlMaster=auto -o ControlPath=/var /tmp/219f76dc-45da-4810-b97f-45eb9377a9ee -o ControlPersist=yes -o ProxyCommand=none -o ServerAliveInterval=15 -o ServerAliveC ountMax=3 -o PreferredAuthentications=publickey -o NumberOfPasswordPrompts=0 10.254.1.11 true
2024-05-21T13:16:07 [D] ‘true’ is not recognized as an internal or external command,
2024-05-21T13:16:07 [D] operable program or batch file.
Is there a way to edit the string myself?
Thank you all for your help!