If the cluster displays a banner on login (which is very common), the active_shell option does not work.
This is because it uses the --login on every ssh command.
The solution should be straightforward: remove the active shell option on all the commands requiring reading the cluster output.
An even better option would be to run a mock ssh --login run, capture all the output, and remove it when reading.
However, this does not account for eventual randomness and variable information (storage, timing, available computational resources, or costs).
If the cluster displays a banner on login (which is very common), the active_shell option does not work. This is because it uses the --login on every ssh command. The solution should be straightforward: remove the active shell option on all the commands requiring reading the cluster output. An even better option would be to run a mock ssh --login run, capture all the output, and remove it when reading. However, this does not account for eventual randomness and variable information (storage, timing, available computational resources, or costs).