how to run .sh file in ssh code example Example: how to run shell script chmod +x <fileName> ./fileName. # or use ->. bash fileName