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).
ssh
back is possible. Would it be an option for you? – xhienne Jan 10 '17 at 00:42