tinni88 Posted March 12, 2021 Share Posted March 12, 2021 (edited) 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, 2021 by tinni88 Solved Quote Link to comment
JonathanM Posted March 12, 2021 Share Posted March 12, 2021 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. Quote Link to comment
tinni88 Posted March 12, 2021 Author Share Posted March 12, 2021 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 Quote Link to comment
JonathanM Posted March 12, 2021 Share Posted March 12, 2021 Use the ip instead of tower Quote Link to comment
tinni88 Posted March 12, 2021 Author Share Posted March 12, 2021 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.