When I SSH into a machine I can run a particular command (let's say mycommand) on that machine's bash terminal without issue. BUT when I try to do ssh localhost 'mycommand' I get an "unknown command" error.
Maybe the command is defined in my .bashrc file as an alias but I checked and it isn't.
Any ideas?