Simpler SSH

FYI, from a prior thread post some discussion on using plink to shut down or reboot the my cloud from the Windows command line (CMD)…

Here are the call’s I use both in a batch (.bat) file and in SSH Button on my Android phone. In addition to a call to un-mount a an attached USB drive. Obviously replace the IP address and “sdb1” with the correct values for your setup.

Shutdown and power off:
plink.exe -ssh -l root -pw welc0me 192.168.1.10 /sbin/shutdown -h -P now

Shutdown only:
plink.exe -ssh -l root -pw welc0me 192.168.1.10 /sbin/shutdown -r now

Power off only:
plink.exe -ssh -l root -pw welc0me 192.168.1.10/sbin/poweroff

Reboot:
plink.exe -ssh -l root -pw welc0me 192.168.1.10/sbin/reboot

Un-mount USB drive:
“plink.exe -ssh -l root -pw welc0me 192.168.1.10 umount /media/usb”

Or

“plink.exe -ssh -l root -pw welc0me 192.168.1.10 umount /dev/sdb1”

As indicated in that thread discussion one can create batch files (.bat) to automate the process if they so desire. SSH button can be found at this link.

1 Like