Reboot Computer Connected to Tomato

Discussion in 'Tomato Firmware' started by threehappypenguins, Feb 26, 2014.

  1. threehappypenguins

    threehappypenguins Networkin' Nut Member

    From what I understand, PuTTY displays the command prompt of a Linux computer in windows. I have PuTTY for Windows and can connect through SSH to the router running Tomato. What I'm wondering is, is it possible to restart a computer by typing a command into PuTTY and that sends a signal to a specific computer in the network to reboot? I tried:

    net rpc shutdown -r  -I IPADDRESS -U USERNAME%PASSWORD
    And I got the error "-sh: net: not found"

    I'm guessing that's because Tomato doesn't have a net command. Is there a command that Tomato does that can do what I'm asking?
  2. koitsu

    koitsu Network Guru Member

    NET RPC is a Windows command, not a Linux command. You will not find an equivalent of this on UNIX/Linux systems.

    Your only choice is to Remote Desktop into the Windows-based PC and issue shutdown -t 0 -f -r command from there. (Do not mistake this command for the shutdown command on UNIX/Linux).

    The easiest way to do this is to use an SSH tunnel/forward in PuTTY, that forwards localhost:1234 to (where is the IP of the Windows machine you want to Remote Desktop into on your LAN), when SSH'ing to your router (across the Internet). Then on the local workstation, you Remote Desktop to localhost:1234. You will need to make sure you have Remote Desktop enabled on the system in advance.

    ~80% of this question is Windows IT-related and is not relevant to TomatoUSB.
  3. eibgrad

    eibgrad Network Guru Member

    The NET command would normally work except for one problem; it’s part of the Samba package, and many routers have stripped that out to save space (assuming they've installed Samba at all). If you have access to Optware, you could install the latest release of Samba and get the command back.
    Last edited: Feb 27, 2014
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice