Improve ssh error reporting
The way we currently report errors is slightly unfortunate, for example if authentication fails then the user is presented with
Error initializing command: RuntimeError - Unable to create directory on remote system /var/tmp/foreman-ssh-cmd-d6b0bd45-11cb-4cfa-8e76-721548781759: exit code: 255 Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). Exit status: EXCEPTION
The first line hints at permissions on the remote system, the second line too unless the user knows what publickey and friends mean.
Fixes #34363 - Implement basic preflight checks
- executing a remote script to check for noexec mounts
- executing a remote script to check if we can change to effective user
Also slightly refactors error handling
#5 Updated by Adam Ruzicka 3 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_proxy_plugin|a2e28ef4a167b7c11bd3b680ea6ffcce78920b2e.