March 12, 20215 yr hey all Sorry if this is in the wrong place, I have a script setup on my unraid server and a bat file on my windows vm that shuts down my win 10 vm and starts my ubuntu 20.04 vm up via ssh but i cant figure out the correct way to do it with ubuntu so to shut down ubuntu vm and start win 10 vm. The bat file used for windows is "C:\Program Files\PuTTY\plink.exe" -ssh -pw password root@tower "/mnt/disk1/scripts/retro-win10.sh VM-1 VM-2 > /dev/null &" How would i convert this to being able to use it in ubuntu? to achieve the same out come as windows double click shut down ubuntu start up win10. i have putty installed on ubuntu, Im new to the linux world and still learning. Any help would be much appreciated. Cheers Tinni Edited March 12, 20215 yr by tinni88 Solved
March 12, 20215 yr Try /usr/bin/plink -ssh -pw password root@tower "/mnt/disk1/scripts/retro-win10.sh VM-2 VM-1 > /dev/null &" Because you didn't post the content of the .sh file, I'm just assuming that you want to reverse the VM-1 and 2 parameters. If it doesn't work, post the sh content.
March 12, 20215 yr Author hey jonathanm Thanks for getting back to me i didn't need to change the vm parameters as i have two different scripts on unraid (one) win10-retro.sh (two) retro-win10.sh I just tried that but it comes back as "unable to open connection temporary failure in name resolution" Not really sure why that is coming back as that As i can ssh into the unraid sever via putty no problems. any other ideas? Cheers Tinni
March 12, 20215 yr Author Thanks jonathanm That did the trick all working now : ) Changed tower to ip & changed "C:\Program Files\PuTTY\plink.exe" to /usr/bin/plink Thanks again for your help
Archived
This topic is now archived and is closed to further replies.