# SSH questions on fresh DietPi installation

**URL:** https://dietpi.com/forum/t/ssh-questions-on-fresh-dietpi-installation/13515
**Category:** General Discussion
**Created:** [24 June 2022 13:45 UTC](https://dietpi.com/forum/t/ssh-questions-on-fresh-dietpi-installation/13515 "2022-06-24T13:45:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Macromop](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@Macromop](https://dietpi.com/forum/u/Macromop)
#### Post date: [24 June 2022 13:45 UTC](https://dietpi.com/forum/t/ssh-questions-on-fresh-dietpi-installation/13515/1 "2022-06-24T13:45:00Z")

</div>

I’ve just made a fresh installation of DietPi on a Raspberry Pi 4, and I had some questions.

Why is there a known\_hosts file in root’s .SSH directory? Why would DietPi ever be making an SSH connection to their server?

Also, is there anything extra in DietPi that may be changing the way OpenSSH works? I’ve set my configuration file to prevent logins using a password, but it still allows them.

Thanks

---

<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: [24 June 2022 14:34 UTC](https://dietpi.com/forum/t/ssh-questions-on-fresh-dietpi-installation/13515/2 "2022-06-24T14:34:03Z")

</div>

Welcome to our community.

The known host file is needed to be able to upload the survey file. Even if file is empty 🙂

By default we use Dropbear SSH server. Did you changed to OpenSSH already? Usually there is no specific configuration from our side on SSH server installation.

---

<div class="post-metadata">

### Author: ![Macromop](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@Macromop](https://dietpi.com/forum/u/Macromop)
#### Post date: [24 June 2022 15:12 UTC](https://dietpi.com/forum/t/ssh-questions-on-fresh-dietpi-installation/13515/3 "2022-06-24T15:12:10Z")

</div>

Thanks for the response.

I did switch to OpenSSH since I need SFTP and getting that working with Dropbear seemed like a hassle. I used the dietpi.txt file to set things up, and one of the directives is whether or not to allow password-based login. Do you know if that is applied on subsequent boots?

---

<div class="post-metadata">

### Author: ![Macromop](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@Macromop](https://dietpi.com/forum/u/Macromop)
#### Post date: [24 June 2022 16:56 UTC](https://dietpi.com/forum/t/ssh-questions-on-fresh-dietpi-installation/13515/4 "2022-06-24T16:56:19Z")

</div>

Problem solve, and I can’t believe I missed it.

If anyone should stumble across this thread in the future, the answer is that Dietpi creates a file in “/etc/ssh/sshd\_config.d” that overrides some directives. This folder is included by default in the “sshd\_config” file.

Deleting the dietpi.conf file will fix it.

---

<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: [24 June 2022 18:26 UTC](https://dietpi.com/forum/t/ssh-questions-on-fresh-dietpi-installation/13515/5 "2022-06-24T18:26:06Z")

</div>

Also bug report uploads are done via SSH\>SFTP to our server.

Enabling inbound SFTP with Dropbear requires nothing more than:

```bash
apt install openssh-sftp-server

```

This is a dedicated SFTP server binary, so the wrapping SSH connection is still done via lightweight Dropbear.
