OpenWrt Forum Archive

Topic: Whats the proper way to invoke the -s option in dropbear?

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

In dropbear.config we have:

config dropbear
    option PasswordAuth 'on'
    option Port         '22'

Yet in dropbear.init there's no mention of the on option.

config_cb() {
    local cfg="$CONFIG_SECTION"
    local nopasswd
    local cfgt
    config_get cfgt "$cfg" TYPE

    case "$cfgt" in
        dropbear)
            config_get passauth $cfg PasswordAuth
            config_get port $cfg Port

            case "$passauth" in
                no|off|disabled|0) nopasswd=1;;
            esac
            DROPBEAR_ARGS="${nopasswd:+-s }${port:+-p $port}"
        ;;
    esac
}

So what's the proper method for someone who wants to use a public/private key pair?
Is it off or nopasswd?  I'm guessing it's nopasswd after looking at the code but don't really want to lock myself out so thought I'd ask.

(Last edited by KillaB on 26 Apr 2007, 04:58)

isn't it just

option PasswordAuth 'off' or
option PasswordAuth 'no' or
option PasswordAuth 'disabled' or
option PasswordAuth '0'

Yeah, that worked...just required a powercycle as "/etc/init.d/dropbear stop && /etc/init.d/dropbear start" locked me out.
I have serial console access anyway, so I don't know what I was worried about.

(Last edited by KillaB on 27 Apr 2007, 08:22)

The discussion might have continued from here.