# \[SOLVED\] Dropbear service fails

**URL:** https://dietpi.com/forum/t/solved-dropbear-service-fails/6061
**Category:** Troubleshooting
**Created:** [13 December 2021 17:33 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061 "2021-12-13T17:33:08Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![peelingwave](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@peelingwave](https://dietpi.com/forum/u/peelingwave)
#### Post date: [13 December 2021 17:33 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061/1 "2021-12-13T17:33:08Z")

</div>

SSH was working fine until I finished a Wireguard install and rebooted, now I can’t SSH into my local RPI, seems to be an issue with dropbear. I’m on 7.7.3 and when I try to update to 7.9.3, I get more errors complaining about dropbear and the update fails also.

First line of boot message and output of systemctl status drobear.service below

![](https://imgur.com/ZQevPqb)

![](https://imgur.com/aOlbQq9)

link to pics if image doesn’t show [https://imgur.com/a/XFqMs5z](https://imgur.com/a/XFqMs5z)

Any advice?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [13 December 2021 17:53 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061/2 "2021-12-13T17:53:40Z")

</div>

Can you share following

```nohighlight
cat /etc/default/dropbear

```

In worst case you can run dietpi-software and switch SSH server preference to OpenSSH to get SSH access back working.

---

<div class="post-metadata">

### Author: ![peelingwave](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@peelingwave](https://dietpi.com/forum/u/peelingwave)
#### Post date: [13 December 2021 18:08 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061/3 "2021-12-13T18:08:00Z")

</div>

Sure thing. I’ll post another pic unless you have anotehr way for me to post the output since this is a headless server that I’ve currently connected a monitor and keyboard.

Edit, I’ll try your suggestion to run install openssh

---

<div class="post-metadata">

### Author: ![peelingwave](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@peelingwave](https://dietpi.com/forum/u/peelingwave)
#### Post date: [13 December 2021 18:11 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061/4 "2021-12-13T18:11:27Z")

</div>

Here’s a link to the pic in the meantime  
[https://imgur.com/IrATzvE](https://imgur.com/IrATzvE)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [13 December 2021 18:15 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061/5 "2021-12-13T18:15:22Z")

</div>

The issue seems the last line on your configuration file. The KeepAlive yes to be removed

Did you add it manually?

---

<div class="post-metadata">

### Author: ![peelingwave](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@peelingwave](https://dietpi.com/forum/u/peelingwave)
#### Post date: [13 December 2021 18:24 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061/6 "2021-12-13T18:24:11Z")

</div>

And fixed, thank you joulinar! I’m not sure why this line is in there since I don’t recall typing it in. I do have problems of my ssh connection timing out, but the last time I tried fixing that was weeks ago.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [14 December 2021 09:06 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061/7 "2021-12-14T09:06:16Z")

</div>

probably you added the value and did not restart the service until now. 🤔

But if you have issues with closing sessions, you might need to have a look to the client settings.

---

<div class="post-metadata">

### Author: ![peelingwave](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@peelingwave](https://dietpi.com/forum/u/peelingwave)
#### Post date: [15 December 2021 03:35 UTC](https://dietpi.com/forum/t/solved-dropbear-service-fails/6061/8 "2021-12-15T03:35:11Z")

</div>

Will take a look, thanks. And apologies for the late reply, new here and notifications to my email don’t seem to be pushing through. In my profile email is shown as my username and I can’t update it with my email.
