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
1.4m articles
1.4m replys
5 comments
57.0k users