I want to run a script remotely. But the system doesn't recognize the path. It complains that "no such file or directory". Am I using it right?
ssh kev@server1 `./test/foo.sh`
You can do:
ssh user@host 'bash -s' < /path/script.sh
2.1m questions
2.1m answers
60 comments
57.0k users