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
501
Reaction score
399
Credits
398
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,783
Reaction score
1,385
Credits
11,976
Use can use rsh, and rexec (usually they are disabled, but you can enable them)..
But this sounds like a perfect job for ansible.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Latest posts

Top