I have scp 'd a script from RHEL to ESXi /vmfs/volumes/datastore/script.shIs there a way, I can SSH to this ESXi from my RHEL execute the script and then exit the ESXi shell.RHEL is bash and ESXi is sh while echo$0I tried couple of methods:ssh root@esxi-ip '/vmfs/volumes/datastore/script.sh'ssh root@esxi-ip << EOT> /vmfs/volumes/datastore/script.sh> EOTMost of these fail. Any ideas? Thanks.
Execute a remote script on ESXi from a local RHEL
shell;vmware