I have a script in my system. I want to run this script on the remote system which has SSH connection.
Printable View
I have a script in my system. I want to run this script on the remote system which has SSH connection.
It is very easy just put the script file path after the ssh command like below.
ssh [email protected] 'bash -s' < cat myscript.sh