Login with SSH-Keys Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Klola
Posts: 22
Joined: Tue Jul 20, 2021 5:07 pm

Re: Login with SSH-Keys

Post by Klola »

In fact, I can still log in with user dietpi and the password, not with root.

Also here is DROPBEAR_EXTRA_ARGS=-gentered.
Should I log in first with dietpi and there
DROPBEAR_EXTRA_ARGS=-g?

Doesn't it make sense to disable the password for both logins if I only log in with an ssh key? Thanks
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Login with SSH-Keys

Post by Joulinar »

Just have a look to the man page I linked above. There you have all possible options. Just use -s options instead of -g if you like to disable password login for all user.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 368
Joined: Tue Feb 25, 2020 2:54 pm

Re: Login with SSH-Keys

Post by trendy »

Klola wrote: Thu Sep 16, 2021 10:05 am Doesn't it make sense to disable the password for both logins if I only log in with an ssh key? Thanks
It makes sense, but first you need to make sure you can login with ssh keys before disabling password login globally to avoid getting locked out.
Klola
Posts: 22
Joined: Tue Jul 20, 2021 5:07 pm

Re: Login with SSH-Keys

Post by Klola »

@trendy @Joulinar

Done. Both passwords disabled, SSH-Key is working :)
Thanks! learnt alot again! :)
Post Reply