title: how to run a shell script present on one linux vm, in another linux vm
body: <p>I use VMware vsphere client v5.5. I have developed a simple shell script which basically gives info about the system using the command "lscpu".Now suppose I have two vm's ,both the vm's have RHEL 6.5 installed on them. Suppose I have logged into VM 1 and the shell script is present in this VM1, now I want the info about VM2 and I want to run this shell script file in VM2 from VM1 and get back the result on vm1, how can I do it? One idea I found out was using ssh , but I'm not too sure about it, can anyone let me know how can it be done.</p>