When trying to execute a script on a remote server (using remote script task, ansible playbook etc.), the following error is thrown:
#### Error stream:
bash: /tmp/ot-20220719T110257870/uploaded-script.sh: Permission denied
Exception during execution:
javax.script.ScriptException: SystemExit: 126 in <script> at line number 21
Affected Products & Versions
Release, any version
Probable causes are:
- the /tmp folder on the destination host mounted as noexec
- SSH users (configured in Release) do not have permission to execute the script in the /tmp directory
- Remount the /tmp fs with the exec permission
- Ensure that the SSH user configured in Release has the permission to execute scripts in the /tmp directory
To see if the issue is with Release or the configuration at the target server, you can copy the playbook/scripts manually to the /tmp directory of the target host and try to execute with the user you have configured in Release.
Please sign in to leave a comment.