You are not logged in.

#1 2010-08-06 18:18:45

kennnn
Member
Registered: 2010-02-18
Posts: 14

dropbear password less login problem

I'm using dropbear from the AUR and have set up key based authentication, I would like to disable password logins aswell as disable root logins.

looking at the man page for dropbear I can use the -w and -s flags to do this ie:

 the TCP port that Dropbear listens on
DROPBEAR_PORT="127.0.0.1:22" # Default to local-only.

# any additional arguments for Dropbear
DROPBEAR_EXTRA_ARGS="-w -s" # Default to no-root logins.

# specify an optional banner file containing a message to be
# sent to clients before they connect, such as "/etc/issue.net"
DROPBEAR_BANNER=""

# RSA hostkey file (default: /etc/dropbear/dropbear_rsa_host_key)
#DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key"

# DSS hostkey file (default: /etc/dropbear/dropbear_dss_host_key)
DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key"

however I get:

/etc/rc.d/dropbear: line 16: [: -w: binary operator expected

Ive googled my little heart out trying to get this sorted, but nada!!

is there a seperator needed here?

Offline

#2 2010-08-06 18:42:22

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: dropbear password less login problem

Twitch.... The rc.d script has a bash shebang, and then uses /bin/sh syntax with a complete disregard for proper quoting.

Untested, but likely to yield better results: http://codepad.org/X52XNupX

Offline

#3 2010-08-06 18:46:37

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: dropbear password less login problem

I get the same error but it's harmless as far as passwordless login goes (it should work fine nonetheless). Have you tried increasing verbosity on the client side? Did you test if it work?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB