0

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?

neubert
  • 7,574
  • 39
  • 94
  • 156

0 Answers0