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 ismail@192.168.142.144 'bash -s' < cat myscript.sh