Disable Dropbear Banner?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
DD-WRT Novice

Joined: 10 Feb 2011
Posts: 7

PostPosted: Fri Feb 21, 2014 18:31    Post subject: Disable Dropbear Banner? Reply with quote
Whats the proper way to disable the default banner that is displayed upon making an SSH connection to DD-WRT? Ideally, I want it to display nothing, just a login prompt. I tried this in my startup commands:
killall dropbear
dropbear -r /tmp/root.ssh/ssh_host_rsa_key

However after a reboot dropbear is still running with the -b option per ps. Interestingly if I run these two commands in a telnet session, it does what I want by restarting dropbear without the -b option. Maybe the startup commands run too early in the boot process, before dropbear is initialized? Whats the right way to turn off the login banner?

Joined: 24 Feb 2009
Posts: 2003
Location: Sol System > Earth > USA > Arkansas

PostPosted: Sat Feb 22, 2014 2:45    Post subject: Reply with quote
The login information is stored here on my router: "/tmp/loginprompt".

You have to remove or clear that file before dropbear starts. (Maybe restart dropbear.)

Likely you can put the command "rm /tmp/loginprompt" somewhere in your startup script (remove the quotes first). In theory, that should kill the login information.

E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
DD-WRT Novice

Joined: 23 Feb 2014
Posts: 1

PostPosted: Sun Feb 23, 2014 16:44    Post subject: Reply with quote
In my startup script I use
echo "Welcome!" > /tmp/loginprompt
echo \"What\'s the magic word?\" >> /tmp/loginprompt
stopservice sshd
startservice sshd
I assume you can rm loginprompt at startup and restart sshd, but maybe you should just write a blank character then restart sshd.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum