As part of my deployment pipeline I want to stop and start one of my apps, this has to be done by a specific account.
I have setup ssh connection from go to the server, and set a task in my pipeline to ssh and run the script.
Outside of go this is working perfectly, ie from the server if I
ssh <user>@<server> 'path/to/script'
I will connect to <server> as <user> and the script is executed without any problem.
However if I set this up within Go (Enterprise edition 2.2 on Red Hat Linux) the task fails with the error
bash 'path/to/script' : No such file or directory
I'm at my wits end as to what's going on. Any ideas?