Hi all,
I have a default install of Buster, and I know that ssh is running because it responds when I try to ssh into the Pi. But I want to allow root login, and on other OSs I do so by adding “PermitRootLogin yes” to sshd_config, but on DietPi I do not see it under /etc/ssh.
Does it reside elsewhere, or do I have to install some other packages?
Thanks!
That’s quite old. You should think to update to Bullseye at least DietPi - How to upgrade to "Bullseye" - DietPi blog
By default we use Dropbear SSH server and not OpenSSH. As well root login should be possible without configuration needed. At least we don’t lock any root user on a standard system.
Did I ask whether to upgrade or not? Don’t think so.
There will be no upgrading. I am on Pi 3. Anything newer than Buster is painfully slow. So, no.
If root login is allowed than why is it not? Where is the config for sshd?
It was just an information. And it’s up to you to stay on an outdated unsupported version as we will drop support soon on next release.
Anyway, as stated above, by default DietPi is using Dropbear. There is no sshd on this SSH server.
And then they wonder, why…
You could switch from Dropbear to OpenSSH server (in dietpi-software).
Then, sshd_config is present.
Also see [OpenWrt Wiki] Dropbear configuration for config options.
As said, root login is enabled by default on our system. On new systems installs or while switching SSH server, you could disable root login as an option.
Parameter can be checked
cat /boot/dietpi.txt | grep SSH_PASS
But this will not impact a running SSH server.
dropbear let me in once I set a password for root.
Is there no way to ssh as root w/o a password?
Simply use SSH keys. That’s how it is working on all my 15 demo systems without issue. Nobody told that it is not possible.
This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.