G Gabriel Turqos Active Member Joined Mar 11, 2019 May 7, 2020 #1 I have a script in my system. I want to run this script on the remote system which has SSH connection.
I have a script in my system. I want to run this script on the remote system which has SSH connection.
Neemobeer Cloud Security Engineer Staff member Joined Jul 4, 2015 Location Colorado May 7, 2020 #2 It's pretty simple. ssh user@servernameorip 'bash -s' < your-local-script.sh
edizgeorgi Active Member Joined May 31, 2019 May 8, 2020 #3 It is very easy just put the script file path after the ssh command like below. ssh [email protected] 'bash -s' < cat myscript.sh Look: How To Run Shell Script or Command On Remote With SSH – POFTUT
It is very easy just put the script file path after the ssh command like below. ssh [email protected] 'bash -s' < cat myscript.sh Look: How To Run Shell Script or Command On Remote With SSH – POFTUT