问题:
使用ssh登录arm linux时,每次都需要输入两次密码。
查看var/log/message 发现第一次登录被拒绝。
解决方法:
/etc/default/dropbear
# Disallow root logins by default
#DROPBEAR_EXTRA_ARGS="-w"
DROPBEAR_EXTRA_ARGS=""
修改上述文件,重启即可;
参考:https://www.cybermilitia.net/2009/02/28/dropbear-on-debian/
Lastly, we need to disable password login for root in Dropbear. To do this, edit the file /etc/default/dropbear and –
edit the line –
DROPBEAR_EXTRA_ARGS=""
to read –
DROPBEAR_EXTRA_ARGS="-g"
and then
:~# /etc/init.d/dropbear restart
And we’re all done !
A lightweight replacement SSH server with SFTP and passwordless logins for root !
All with the usual ease of Debian and apt.
p.s. – You can use these switches in dropbear configuration –
1 Disallow root logins –
DROPBEAR_EXTRA_ARGS="-w"
2 Disable password logins –
DROPBEAR_EXTRA_ARGS="-s"
3 Disable password logins for root –
DROPBEAR_EXTRA_ARGS="-g"
4 or any combination thereof, like –
DROPBEAR_EXTRA_ARGS="-w -s"