Changing PATH, HOME env variables of dropbear ssh session I made a dropbear multi binary that has android patch.
But everytime , when i login via ssh using dropbear as ssh server.
 On checking environment variables, I get ::
HOME=/sdcard
PATH=/sbin:/system/sbin:/system/bin:/system/xbin

I found no flag for changing these in dropbear help.

-A Android Mode, specify a user explicitly
-N Android Mode, user name
-C Android Mode, password
-R Android Mode, public key file (authorized_keys)
-U Android Mode, UID
-G Android Mode, GID
-b bannerfile   Display the contents of bannerfile before user login
            (default: none)
-d dsskeyfile   Use dsskeyfile for the dss host key
            (default: /data/data/br.com.bott.droidsshd/files/etc/dropbear_dss_host_key)
-r rsakeyfile   Use rsakeyfile for the rsa host key
            (default: /data/data/br.com.bott.droidsshd/files/etc/dropbear_rsa_host_key)
-F              Don't fork into background
-E              Log to stderr rather than syslog
-w              Disallow root logins
-s              Disable password logins
-g              Disable password logins for root
-p [address:]port
            Listen on specified tcp port (and optionally address),
            up to 10 can be specified
            (default port is 2222 if none specified)
-P PidFile      Create pid file PidFile
            (default /data/data/br.com.bott.droidsshd/files/run/dropbear.pid)
-W &lt;receive_window_buffer&gt; (default 24576, larger may be faster, max 1MB)
-K &lt;keepalive&gt;  (0 is never, default 0)
-I &lt;idle_timeout&gt;  (0 is never, default 0)


How can I change  default PATH &amp; HOME variables in dropbear ?
It is not possible to change the default HOME and PATH variables in Dropbear but you could create a symlink to the directories you want.

You don't mention why you need to change the default variables?