Unable to SSH login at all after disabling root login via SSH #7203
Unanswered
centipedesquad
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Easiest way would be to get local consol access by connecting screen and keyboard. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was following the instructions here to disable root password access. I did this:
/boot/dietpi/func/dietpi-set_software disable_ssh_password_logins root dietpi-software reinstall 104 # reinstall Dropbear
However, since I reinstalled Dropbear and then restarted my RPi 5, I am unable to ssh into my user (not root user) using the password either. I am getting an
ssh: connect to host xxx: Operation timed out
error when trying to log in to either root or the other user.Since by default, I don't have the location
/etc/ssh/sshd_config.d/zz-disable-root-login.conf
and I am getting this error:bash: /etc/ssh/sshd_config.d/zz-disable-root-login.conf: No such file or directory
(because I assume it is specific to openssh and not Dropbear)
I hadn't performed this step.
Any suggestions as to what might be the problem, and what could I do to resolve it?
Unfortunately, just before this I have also installed and run fail2ban, so I am not sure which of the changes is causing the error.
Apologies. I am new to all this, so I might have made a rather elementary error.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions