Programming Technology Ubuntu How to execute a shell script in remote server January 27, 2017January 9, 2018 San 1 Comment remote server, shellscript, Ubuntu 16.04 In remote server create your file. On the top of your file add #!/bin/bash Now, make your file executable sudo chmod +x script.sh Invoke the shell script in the server remotely ssh user@ip 'sudo -n /home/user/script.sh'
Pingback:How to setup a Remote Testing Server (Ubuntu)? - Pikesteward - Blog