View Poll Results: What shell daemon do you use?

Voters
7. You may not vote on this poll
  • Telnetd; it's faster and uses almost no resources

    1 14.29%
  • Dropbear(ssh); security is fundamental

    3 42.86%
  • Both, just in case

    3 42.86%
  • Shell daemon? What is it?

    0 0%
Results 1 to 7 of 7

Thread: Replacing telnetd with dropbear

  1. #1
    Join Date
    Sep 2005
    Location
    Madrid
    Posts
    31

    Replacing telnetd with dropbear

    I'm thinking about lauching dropbear automatically on boot and removing telnetd.

    I've already patched rc to launch dropbear and adjust input filtering rules, both controlled by sshd_enabled_x nvram variable.

    My main doubt is how to generate the private keys. One option is to generate the keys on every boot until the flashfs is committed and enabled.

    Another option is to modify dropbear using libnvram to read keys and other configuration parameters. If there aren't keys, we can generate them, write to nvram and commit. This option allows better integration with the webserver.

    What do you think about this idea? Oleg, would you accept the patches in your firmwares?

  2. #2
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    It sure is a nice thing to have ssh more simply enabled/disabled from the web interface, but removing telnetd completely is not so good i think (my opinion).
    My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub

  3. #3
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by unaiur
    What do you think about this idea? Oleg, would you accept the patches in your firmwares?
    The ssh keys is not to be stored in the nvram.
    In fact, enabling ssh is just typing several lines, so i see no reason to change this. You will need to enable flashfs anyway.

  4. #4
    Join Date
    Sep 2005
    Location
    Madrid
    Posts
    31
    What I would like is to make easier to choose what shell daemons are running.

  5. #5
    Join Date
    Sep 2005
    Location
    Madrid
    Posts
    31
    Attached a patch against firmware 1.9.2.7-6b that allows to disable telnetd from the "IP Config-> Miscellaneous" administration web page.

    By default, is enabled.
    Attached Files Attached Files
    Last edited by unaiur; 08-09-2005 at 00:01.

  6. #6
    Join Date
    Sep 2005
    Location
    Berlin, Germany
    Posts
    6
    Quote Originally Posted by unaiur
    Attached a patch against firmware 1.9.2.7-6b that allows to disable telnetd from the "IP Config-> Miscellaneous" administration web page.

    By default, is enabled.
    You should somehow make sure that dropbear is up and running before allowing the user to disable telnetd. Maybe telnetd could be used as a fallback if dropbear won't start (i.e. because of missing key files).

  7. #7
    Join Date
    Sep 2005
    Location
    Madrid
    Posts
    31
    With my patch, you can enable and disable telnetd from the web interface, so that check isn't needed.

    Quote Originally Posted by techno
    You should somehow make sure that dropbear is up and running before allowing the user to disable telnetd. Maybe telnetd could be used as a fallback if dropbear won't start (i.e. because of missing key files).

Similar Threads

  1. dropbear / ssh from wan
    By yilias in forum WL-500g Q&A
    Replies: 3
    Last Post: 24-04-2005, 19:50
  2. Replies: 2
    Last Post: 17-03-2005, 13:27
  3. To find the telnetd version of 1.8.1.7 patch
    By sunwen in forum WL-500g Q&A
    Replies: 1
    Last Post: 11-11-2004, 12:54
  4. telnetd & ftp support
    By Aldert1 in forum WL-300g Custom Development
    Replies: 5
    Last Post: 27-09-2004, 10:59
  5. Can't get dropbear to keep the keys
    By mirco in forum WL-500g Q&A
    Replies: 6
    Last Post: 13-09-2004, 14:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •