Results 1 to 7 of 7

Thread: Can't get dropbear to keep the keys

  1. #1

    Unhappy Can't get dropbear to keep the keys

    Hey Guy's,

    First of all a big commandation from me, aspecially to Oleg, Antiloop + technik. You're doing a very good job, keeping this alive.

    I invested Friday night and the complete Saturday reading all interesting post's from here. Today I flashed Oleg's v5 on my Dad's router, mainly 'cause I want to do admin job's from my homesite via ssh , and 'cause smb is much more comfortable than ftp .

    But here come's my prob: I followed the step's Oleg discripe's on his Site, and after reboot I can't login via ssh. I took top and saw dropbearkey is running again, but after the keygen part it seems not to start the sshd. I also tried "flashfs commit" but it echo's this error msg:

    Erased 65536 bytes from address 0x00000000 in flash
    fopen(): No such file or directory

    Hope one of you has a hint for me, I'll reflash it right now and then after config restoration, I'll try again including flashfs commit after the nvram commit.

    As I'm using Debian since several years the commands are not that new to me, and so I don't think the mistake was on my Side. >> Anyway every hint is very appreciated.

    If one need's additional info's just drop me a line via Mail: schmid17@arcor.de

    Greetz
    Mirco

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    you need to run flashfs save before executing flash commit.

  3. #3

    Re: dropbear keys

    Hi Oleg, thnx for that very fast answer.

    To ensure the mistake wasn't in front of the PC:

    I reseted to factory setting's than I loaded my conf file. After rebooting I telnet'ed to the router and enter'ed the following commands:

    #>/init/rc.sshd
    after the keys are generated I enter'ed
    #>flashfs save; flashfs commit
    then I restarted dropbear as you descriped on your page using again
    #>/init/rc.sshd
    then I set the bootCmd using:
    #>nvram set bootCmdX=/init/rc.sshd
    at last I commit nvram changes using:
    #>nvram commit
    and restarted using:
    #>reboot

    When the router is rebooted I still can't login via ssh. If I start it via telnet using "/init/rc.sshd" dropbearkeys runs again, not starting dropbear sshd after the keys are generated.

    I think I made the correct steps, to have sshd coming up on boot.

    My next step is to reflash the FW as I said in my first posting.

    Greetz
    Mirco

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Have you read the following WIKI page: http://wiki.wl500g.info/index.php/PackageDropbear

    It contains all info on howto enable dropbear SSH daemon.

    Using boot commands is not recommended, and 'BootCmdX' is wrong, the 'X' should be a number.

    Anyway, check the WIKI page.

  5. #5

    The Wiki

    Hey Styno, thnx for your super fast answer.

    I read the wiki on saturday, but I'll reread the info's and try again.

    I'll post again to give an echo.

    Greetz
    Mirco

  6. #6

    No License for a scrolling patent

    I should have read the whole page.

    I've migrated to flashfs-boot, and have both samba and dropbear running.

    But now I have probs mounting my "SanDisk Cruzer" 512Megs USB-Stick

    mount shows that usbfs is mounted but I can't mount using one of the following cmd's

    mount -o remount,rw,noatime /dev/scsi/host0/
    mount -o rw,noatime /dev/scsi/host0/ /mnt/usbfs
    mount /mnt/usbfs

    But the main point is done, thnx to Styno and Oleg.

    I'll post some log's in 15 min's, hope we'll find the mistake.

    Greetz
    Mirco

  7. #7
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by mirco
    I should have read the whole page.

    I've migrated to flashfs-boot, and have both samba and dropbear running.

    But now I have probs mounting my "SanDisk Cruzer" 512Megs USB-Stick

    mount shows that usbfs is mounted but I can't mount using one of the following cmd's

    mount -o remount,rw,noatime /dev/scsi/host0/
    mount -o rw,noatime /dev/scsi/host0/ /mnt/usbfs
    mount /mnt/usbfs

    But the main point is done, thnx to Styno and Oleg.

    I'll post some log's in 15 min's, hope we'll find the mistake.

    Greetz
    Mirco
    you should mount /dev/scsi/host0/bus0/target0/lun0/part1, not a host or disk. There is an example for post-boot script on my page.

Similar Threads

  1. Dropbear SSH server with key authentication
    By Muffe in forum WL-500g Q&A
    Replies: 6
    Last Post: 19-02-2006, 16:37
  2. dropbear / ssh from wan
    By yilias in forum WL-500g Q&A
    Replies: 3
    Last Post: 24-04-2005, 19:50
  3. can't get dropbear to work
    By geethreeforce in forum WL-500g Custom Development
    Replies: 3
    Last Post: 24-10-2004, 00:28
  4. New firmware - dropbear ssh
    By Oleg in forum WL-500g Custom Development
    Replies: 6
    Last Post: 10-03-2004, 11:30
  5. Using multiple WEP keys
    By GrimaceODespair in forum WL-500g Q&A
    Replies: 1
    Last Post: 26-11-2003, 10:21

Posting Permissions

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