# HG changeset patch # User Rob Landley # Date 1319910097 18000 # Node ID a47a5504bbd5bafc55738b980fb180189a75f3f3 # Parent 49b4a99dcf036fea703855e584a646d575e05eb9 Dropbear should allow you to login via public/private key even when user has not password. diff -r 49b4a99dcf03 -r a47a5504bbd5 images/static-tools/patches/dropbear-fixnopasswd.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/images/static-tools/patches/dropbear-fixnopasswd.patch Sat Oct 29 12:41:37 2011 -0500 @@ -0,0 +1,22 @@ +No password is no reason to prevent key-based logins. + +diff -ru dropbear.new/svr-auth.c dropbear/svr-auth.c +--- dropbear.new/svr-auth.c 2011-10-11 09:50:22.047129393 -0500 ++++ dropbear/svr-auth.c 2011-03-02 07:23:36.000000000 -0600 +@@ -249,7 +249,7 @@ + return DROPBEAR_FAILURE; + } + +- /* check for an empty password */ ++ /* check for an empty password + if (ses.authstate.pw_passwd[0] == '\0') { + TRACE(("leave checkusername: empty pword")) + dropbear_log(LOG_WARNING, "User '%s' has blank password, rejected", +@@ -257,6 +257,7 @@ + send_msg_userauth_failure(0, 1); + return DROPBEAR_FAILURE; + } ++*/ + + TRACE(("shell is %s", ses.authstate.pw_shell)) +