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

Script to activate telnet daemon

Discussion in 'Tomato Firmware' started by landa, Dec 22, 2009.

  1. landa

    landa LI Guru Member

    I need a script to activate telnet daemon. I want to put the script in SES/AOSS Button -> Custom Script and when I press the SES button to activate telnet; when I press the SES button again to dezactivate the telnet daemon.

    Thanks!
     
  2. ntest7

    ntest7 Network Guru Member

    Something like this in the "Custom Script" box:

    [ $1 -ge 5 ] && /usr/sbin/telnetd -p 23 -l /bin/sh
    [ $1 -ge 10 ] && /usr/bin/killall telnetd

    Translation: push 5-10 seconds, start telnet. push greater than 10 seconds, kill telnet. The "-p 23" tells telnet which port to listen on; you can use an alternate port if you want.

    telnet will only be available on the local network, not from the internet.
     
  3. landa

    landa LI Guru Member

    Thank you for the answer. I use Tomato Victek mod so I put "/usr/sbin/telnetd -p 23 -l /bin/sh" in the first custom script box and "/usr/bin/killall telnetd" in the seccond custom script box.

    Thanks again!
     

Share This Page