PDA

Bekijk de volledige versie : Possible to add SSH user ?



dotneto
12-12-2008, 23:50
Hi All,

It is possible to add SSH user ?

Have tried ipkg "adduser", I can add the user,
but after the box get reset, user created are gone.

Anyone can advise ?

Thanks

al37919
13-12-2008, 06:25
after adding user do:

echo /etc/passwd >> /usr/local/.files
echo /etc/group >> /usr/local/.files
flashfs save && flashfs commit && flashfs enable && reboot

dotneto
14-12-2008, 00:37
Thanks for the great help. Tested, it work on firmware 1.9.2.7-10.

I would like to allow users only to do remote or local tunnel only,
should I use restricted shell ? Or anyone have better suggestion ?

al37919
14-12-2008, 12:54
I think you need to use openssh (but check the docs). dropbear will not allow you such restrictions