Run Local Script On Remote System via SSH


Gabriel9999
#1
I have a script in my system. I want to run this script on the remote system which has SSH connection.
 
Dexter Sinister
+1
#2  Top Rated Post
I'm sure samueltarcin999 will be along any minute now to answer your question, with the usual reference to an article by Ismail Baydan on the poftut.com site.
 
samueltarcin999
#3
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
Look: https://www.poftut.com/run-shell-scr...nd-remote-ssh/
 

Similar Threads

1
3
check file Existing with Python Script
by Gabriel9999 | Apr 28th, 2020
1
check file Existing with Python Script
by Gabriel9999 | Apr 24th, 2020