What's new

dropbear parameters

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

EnF70

Occasional Visitor
Any chance we can specify parameters when starting dropbear?

I would like to be able to use this parameter:
-W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)

I know it improves SSH tunnel performance for video streaming.
With the default value (24576) the SSH session becomes a little bit unresponsive.
I tested on a different Linux box with "-W 262144" and it seems better.
 
Any chance we can specify parameters when starting dropbear?
On my router I have turned off Dropbear in the WebUI and then enabled it manually. I find it most reliable this way.

Example

Create this files in /jffs/dropbear folder.
Code:
authorized_keys
dropbear_dss_host_key
dropbear_ecdsa_host_key
dropbear_rsa_host_key
loginprompt


/jffs/scripts/services-start
Code:
#!/bin/sh

# begin accepting Dropbear logins
source /jffs/home/dropbear-start

# add cron job:  check dropbear every 5 mins
#cru a id "minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6 with 0=Sunday) command"
/usr/sbin/cru a CheckDropbear              "*/5   *  *    *  *  /jffs/home/dropbear-start"


/jffs/home/dropbear-start
Code:
#!/bin/sh
local DROPBEAR_CMD="/usr/bin/dropbear -p 65123 -I 86400 -s -j -k -b /jffs/dropbear/loginprompt"
local DROPBEAR_PID=$(/bin/echo $(/bin/ps w | /bin/grep -i "$DROPBEAR_CMD" | /bin/grep -v grep) | /usr/bin/cut -f1 -d' ')

if [ -z "$DROPBEAR_PID" ]; then
  /usr/bin/killall dropbear
  /bin/sleep 1
  /bin/rm -rf /root/.ssh
  /bin/ln -sf /jffs/dropbear /root/.ssh
  /bin/rm -rf /etc/dropbear
  /bin/ln -sf /jffs/dropbear /etc/dropbear
  /bin/chown -R $(/usr/sbin/nvram get http_username):root /jffs/dropbear
  /bin/chmod 700 /root/.ssh
  /bin/chmod 600 /root/.ssh/*
  $DROPBEAR_CMD
fi
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top