.ssh/environment equivalent in dropbear

Matt Johnston matt at ucc.asn.au
Sun Aug 26 21:34:59 WST 2007

On Sun, Aug 26, 2007 at 03:29:26PM +0200, Christoph Kurrat wrote:
> I already use the /etc/profile to set the PATH, but I think, /etc/profile is
> only used on login, isn't it?
> The busybox uses ash, but an .ash* file does not exist.
> If I create the .ashrc and export ENV=/var/tmp/.ashrc it works, but to
> export ENV, I again need the /etc/profile.
> This works, but only with ssh, not with scp, due to the missing login.

> I thought it would be easily possible to change a line in the code to add
> the correct path to scp on the router.
> If so, could you tell me the file where I have to search?

Ah right.
If you add an extra line like
addnewvar("PATH", "/bin:/usr/bin:/var/tmp");
to svr-chansession.c below the "/* set env vars */" then it
should work.


More information about the Dropbear mailing list