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_
Just had the same problem myself, solved it with:
ssh user@remotehost PATH=\$HOME/bin:\$PATH\; remote-command