I work with several different servers, and it would be useful to be able to set some environment variables such that they are active on all of them when I SSH in. The proble
Something like:
ssh user@host bash -c "set -e; $(env); . thescript.sh"
...might work (untested)
Bit of a hack but if you cannot change the server config for some reason it might work.