Thanks, after changing the dropbear file I can no longer log on to the raspberry with ssh. Must probably connect monitor/keyboard again and change the config. (Connection refused with putty)
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.
Hello. I want to use shh keys login to my DietPi from 2 laptops and one smartphone. As I understand I have to generate private keys and public keys on each device and copy public keys to DietPi? Do I have to generate also in DietPi? What if I will have to login one time from some other computer?
Regards,
Przemko
just creating and using keys will not automatically disable user/password login. Means you can loin from every other system still. Disabling password setting is something that would need to be done in addition if required.
Thanks for answer. I think I will not use another computers if I will use smartphone. Can You tell me how to disable password login to DietPi? Only to login with keys?
Regards.