# dropbear & putty, without password

**URL:** https://dietpi.com/forum/t/dropbear-putty-without-password/2818
**Category:** Troubleshooting
**Created:** [3 January 2019 21:13 UTC](https://dietpi.com/forum/t/dropbear-putty-without-password/2818 "2019-01-03T21:13:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pakikje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pakikje](https://dietpi.com/forum/u/pakikje)
#### Post date: [3 January 2019 21:13 UTC](https://dietpi.com/forum/t/dropbear-putty-without-password/2818/1 "2019-01-03T21:13:52Z")

</div>

Hello guys,

i am looking for a tutorial that will help me with ssh-ing into dietpi without password (using a key). I am using dropbear (DietPi) and Putty (Windows)

Thnx!

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [4 January 2019 04:00 UTC](https://dietpi.com/forum/t/dropbear-putty-without-password/2818/2 "2019-01-04T04:00:48Z")

</div>

[https://www.cybermilitia.net/2009/02/28/dropbear-on-debian/](https://www.cybermilitia.net/2009/02/28/dropbear-on-debian/)

I think it has to do with keygen and stuff…look at that link above and try the keygen stuff  
Remember dropbear cannot do SCP, openssh can

---

<div class="post-metadata">

### Author: ![pakikje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pakikje](https://dietpi.com/forum/u/pakikje)
#### Post date: [4 January 2019 13:59 UTC](https://dietpi.com/forum/t/dropbear-putty-without-password/2818/3 "2019-01-04T13:59:55Z")

</div>

I guess i am not clever enough. can’t figure it out.

Workaround (sort-off): Solarputty (saves login credentials)

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [15 January 2019 17:33 UTC](https://dietpi.com/forum/t/dropbear-putty-without-password/2818/4 "2019-01-15T17:33:15Z")

</div>

pakikje  
I just copy&paste from my own docs here: [https://dietpi.com/forum/t/adding-2-factor-authentication/2829/1](https://dietpi.com/forum/t/adding-2-factor-authentication/2829/1)

It is just rough without much sentences to it, if it’s isn’t enough for you I will make a proper step-by-step guide out if it.

---

<div class="post-metadata">

### Author: ![vnzkay](https://dietpi.com/forum/user_avatar/dietpi.com/vnzkay/32/90_2.png) [@vnzkay](https://dietpi.com/forum/u/vnzkay)
#### Post date: [23 May 2021 03:32 UTC](https://dietpi.com/forum/t/dropbear-putty-without-password/2818/5 "2021-05-23T03:32:12Z")

</div>

There’s a tool for that! It comes with lots of distros. It’s here: [https://linux.die.net/man/1/ssh-copy-id](https://linux.die.net/man/1/ssh-copy-id)

Get three things, the location of you SSH public key, and your dietpi’s user/hostname (e.g. dietpi@abc).

For an SSH key at `~/.ssh/id_rsa.pub` and a dietpi with the user/hostname `dietpi@abc`, I’d run

ssh-copy-id -i ~/.ssh/id\_rsa.pub dietpi@abc

That says copy my public key (at ~/.ssh/id\_rsa.pub) to the `authorized_keys` for dietpi on hostname abc.

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [23 May 2021 17:53 UTC](https://dietpi.com/forum/t/dropbear-putty-without-password/2818/6 "2021-05-23T17:53:45Z")

</div>

Jep, that tool is part of the openssh-client package. We just found a bug in it where it by default copies the authorised key to the wrong location when Dropbear is the SSH server it connects to: [https://github.com/MichaIng/DietPi/issues/4380](https://github.com/MichaIng/DietPi/issues/4380)  
I contacted the author about it already, so far no answer.
