Empty sudo nano /etc/ssh/sshd_config file

Hello, I want to change the ssh port 22, but the sudo nano /etc/ssh/sshd_config file i empty. I have installed openssh.
Greetings

In my installations, all is as expected:

  • OpenSSH is installed
  • /etc/ssh/sshd_config is present

You could try to do a reinstall via dietpi-software reinstall 0 (0 is the software ID of OpenSSH, see DietPi Software list · MichaIng/DietPi Wiki · GitHub.

EDIT: Reinstall via dietpi-software reinstall 105.

0 is the ID for OpenSSH client. Not the server :wink:

@doko1975 how does OpenSSH has been installed

1 Like

I installed OpenSSH via dietpi-software.