dropbear icon indicating copy to clipboard operation
dropbear copied to clipboard

Add an option to allow only root logins

Open sreerajkksd opened this issue 4 years ago • 2 comments

Can we add an option to dropbear (say, -o or --allow-root-only) flag to allow only root login ? Or, accept the list of users to allow login using another option either --only-allow-users "root,postgres" or --only-allow-group root,group1

This is useful when we use dropbear as a secondary emergency ssh server, and only restricted set of users should be allowed to login for emergency troubleshooting.

sreerajkksd avatar May 06 '21 13:05 sreerajkksd

Exists since 15 years, but its called "rootonlylogin" : https://github.com/Freetz-NG/freetz-ng/blob/master/make/dropbear/patches/100-root-login-only.patch

selanf avatar Apr 01 '22 16:04 selanf

Well, then the question is: can we patch https://github.com/Freetz-NG/freetz-ng/blob/master/make/dropbear/patches/100-root-login-only.patch here ? @mkj ?

sreerajkksd avatar Apr 04 '22 13:04 sreerajkksd