Run Local Script On Remote System via SSH

Gabriel9999

Member
Joined
Mar 12, 2019
Messages
38
Reaction score
4
Credits
130
I have a script in my system. I want to run this script on the remote system which has SSH connection.
 


TechnoJunky

Well-Known Member
Joined
Dec 3, 2018
Messages
493
Reaction score
390
Credits
314
While I'm sure there's a way to send all the commands to the remote system, I'd say the easiest way to do this is just to copy (FTP) the file to the remote system, then SSH to it and run it there. Is this not an option?
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,390
Reaction score
1,017
Credits
8,545
Use can use rsh, and rexec (usually they are disabled, but you can enable them)..
But this sounds like a perfect job for ansible.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Staff online

Members online


Top