Problem:
Hi, I’m having trouble running the remote execution plugin. For the configuration I have used this command: sudo foreman-installer --enable-foreman-proxy --enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-script --enable-foreman-plugin-ansible --enable-foreman-proxy-plugin-ansible --enable-foreman-plugin-setup
I have verified that in the created hosts there is a public key of the foreman-proxy and I have added the key of the Master Node in which foreman is running.
When I try to do a simple command to check that it works, this is the output:
** 1: Error initializing command: RuntimeError - Could not establish connection to remote host using any available authentication method, tried password, publickey
2: Exit status: EXCEPTION**
The Schedule Remote Job has been tried to be done by user and by rsa key, but none with success.
Expected outcome:
The remote execution plugin works
Foreman and Proxy versions:
Foreman → 3.4.1
Foreman and Proxy plugin versions:
foreman_remote_execution → 8.0.0
Distribution and version:
Rocky Linux 8.7
Other relevant data:
Also from a Master Node terminal I can connect via ssh without any problem. With the user foreman-proxy it simply asks me for the password.