G Gabriel Turqos Active Member Joined Mar 11, 2019 Messages 17 May 7, 2020 Thread Author #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.
Solution edizgeorgi May 8, 2020 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: 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 ismail@192.168.142.144 'bash -s' < cat myscript.sh Look: How To Run Shell Script or Command On Remote With SSH – POFTUT
Neemobeer Cloud Security Engineer Staff member Joined Jul 4, 2015 Messages 8,998 May 7, 2020 #2 It's pretty simple. ssh user@servernameorip 'bash -s' < your-local-script.sh Upvote 0 Downvote
edizgeorgi Active Member Joined May 31, 2019 Messages 17 May 8, 2020 #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: How To Run Shell Script or Command On Remote With SSH – POFTUT Upvote 1 Downvote Solution
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: How To Run Shell Script or Command On Remote With SSH – POFTUT