1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remote WOL through SSH

Discussion in 'Tomato Firmware' started by tuxarut, Mar 3, 2008.

  1. tuxarut

    tuxarut LI Guru Member

    I have been trying for a few hours now to be able to SSH into my router and WOL my PC. I enable SSH daemon in the administration page. I am able to ssh into my router from my internal WAN but when I try from outside it pings out. I see under SSH Daemon there is a authorization key spot but I have nothing to put in there. Do I have to manually forward the remote port to the internal port? If so, what would be the internal address xxx.xxx.1.1? I'm getting lost the more and more I work on this. There has to be a simpler way to WOL from outside the next then be able to remote in. What are some ways you guys do it? Any information relate to my troubles would help. Thank you.
     
  2. tuxarut

    tuxarut LI Guru Member

    also, I am able to WOL from the tomato page, but I want to be secure and do it through SSH. When I try to WOL through SSH (ssh root@externalIP ether-wake MAC address) It asks for the password and I've tried both my routers pw and my computers pw and both don't work.
     
  3. tuxarut

    tuxarut LI Guru Member

    Nothing?? Please
     
  4. tuxarut

    tuxarut LI Guru Member

    I upgraded to 1.17, took awhile, had to reconfigure everything cause it didn't save. But now when I try to SSH from inside the network it doesn't want to work? what am I doing now?? ssh root@externalip
     
  5. tuxarut

    tuxarut LI Guru Member

    Ok it seems I am able to see my home network but now I need to figure out how the authentication keys work. When I first connect with putty it popped up displaying my fingerprint and forgot to write it down and just hit yes. It asks for a login but nothing happens. I accessed it from another computer and this time wrote down the fingerprint. Now do I need to take this fingerprint and added to the my routers administration page? or do I need to generate a public key and pair it to my fingerprint? I'm really needing some help please
     
  6. michaelk

    michaelk LI Guru Member

    What you basically need to do is:

    1. generate a key pair using PuTTYgen
    2. paste the public key in the Adminstration=>Admin Access=>Authorized Keys
    3. start pageant and load your private key
    4. Now you can use putty and log in to your router without
    having to type the password :)

    Search in google for "putty pageant PuTTYgen" there are a lot of tutorials:

    Example:

    http://cxliv.org/2007/12/11/using_pageant_with_putty_at_pair_networks.php

    Once you have logged in to the router you can do:

    ether-wake -i br0 <mac address of the machine you want to wake up>

    Example:

    ether-wake -i br0 00:11:22:33:44:55

    Hope this helps...

    //Michael
     

Share This Page