Sample Header Ad - 728x90

Execute script on a remote server contained on client side

4 votes
1 answer
522 views
I am trying to figure out how I could manage more easily my servers. I'd like to know if I can make my scripts available to all the servers without copying them to the servers. They are located in my computer (client side), bash-3.2$ ls -l my_local_script -rwxr--r-- 1 mario staff 554 Jan 9 13:35 my_local_script I always login remotely with my terminal using SSH bash-3.2$ ssh root@192.168.56.140 root@192.168.56.140's password: [root@prodsrvr00 ~]# Once I am logged into the server, I'd like to know if there is any way to execute the script like it was locally available without copying it to the server. [root@prodsrvr00 ~]# my_local_script Since it's a NAT network, I cannot SSH back to my computer (the client).
Asked by mrgamertag (41 rep)
Jan 9, 2017, 11:16 PM
Last activity: Jan 21, 2017, 05:39 PM