I can\'t seem to set a new $PATH such that it is used when executing commands via ssh user@host command. I have tried adding export PATH=$PATH:$HOME/new_
ssh user@host command
export PATH=$PATH:$HOME/new_
You can always say:
ssh remotemachine 'export PATH=wedontneedastinkingpath; echo $PATH'