I am following the guide in the remote execution documentation and when I get to the part about copying ssh keys to the remote server I am running into confusion and a problem. I have root login blocked for security reasons but I am trying to copy the key to an non-root user however I cannot seem to understand how to get foreman to use the alternate user. I seem to be misunderstanding on how to configure this and cannot seem to find any guidance unless I remove the root restriction which I do not want to do.
Job should execute as alternate user and Sudo to root
Foreman and Proxy versions:
Distribution and version:
Other relevant data:
I am also unclear how foreman executes commands. Does foreman-proxy ssh to remote host and sudo to required user to execute commands? or does the system ssh as non-root user and then sudo to root to execute commands? I am trying to simultate this on the console session but I cannot seem to get it to work there to verify if my execution is able to work or not.
Thanks for your help. Still trying to learn this beast.