1

Does anybody know where the Dropbear SSH client looks for a config file? I need to specify a certain identity file to be used by default. Eg, can I setup dropbear client such that I can use

$ dbclient user@host

instead of

$ dbclient -i my/rsa/key user@host

?

PS: I'm pretty much stuck with Dropbear rather than OpenSSH since I am on embedded linux running Angstrom.

EDIT: Alternatively, where does the dropbear client look for an identity file by default?

Nicu Stiurca
  • 8,747
  • 8
  • 40
  • 48

2 Answers2

4

you could create a shell alias... I added this line to my profile

alias ssh='ssh -i $HOME/.ssh/id_rsa'
go2null
  • 2,080
  • 1
  • 21
  • 17
m_majeres
  • 261
  • 2
  • 4
  • In my case the key was under /etc/dropbear, so this worked for ssh/scp: `alias ssh='ssh -i /etc/dropbear/dropbear_rsa_host_key'` `alias scp='scp -i /etc/dropbear/dropbear_rsa_host_key'` – mmindenhall Jun 17 '15 at 20:54
  • I think the author was looking for a solution using dropbears dbclient, not openssh client? – gesell Jul 27 '16 at 10:10
4

New dropbear (v2017 ..) has a default id .ssh/id_dropbear see help: -i <identityfile> (multiple allowed, default .ssh/id_dropbear)

Community
  • 1
  • 1
georgk111
  • 56
  • 1
  • It's been a long time since I've needed dropbear myself, but since this question continues to be popular, I'm updating the accepted answer. Thanks for posting! – Nicu Stiurca Aug 17 '23 at 17:28