Passwordless SSH Access on dietpi any specific process to follow

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
mcnahum
Posts: 32
Joined: Mon Oct 19, 2020 7:25 pm

Passwordless SSH Access on dietpi any specific process to follow

Post by mcnahum »

For my devices who are not running DietPi I'm using this tutorial to enable Passwordless SSH Access from my Mac ... but here it seams to not working ... maybe I'm forgetting something or a step?

https://www.raspberrypi.com/documentati ... ssh-access
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Passwordless SSH Access on dietpi any specific process to follow

Post by Joulinar »

The guide you linked specific to OpenSSH. But on DietPi we use Dropbear SSH server. There your guide might not fit.

You could have a look to following guide https://openwrt.org/docs/guide-user/sec ... c-key.auth

Or change SSH server preference from Dropbear to OpenSSH using dietpi-software
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: 389
Joined: Tue Feb 25, 2020 2:54 pm

Re: Passwordless SSH Access on dietpi any specific process to follow

Post by trendy »

Yeah, keys in dropbear are stored in /etc/dropbear/authorized_keys in contrast to ~/.ssh/authorized_keys in openssh
mcnahum
Posts: 32
Joined: Mon Oct 19, 2020 7:25 pm

Re: Passwordless SSH Access on dietpi any specific process to follow

Post by mcnahum »

trying to have it working with dropbear for knowledge

I can see the authorized_keys file populated with my key ... but it's still prompting for my password when I ssh to it
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Passwordless SSH Access on dietpi any specific process to follow

Post by Joulinar »

not sure which SSH client you are using but in Putty you need to configure the key to be used https://openwrt.org/docs/guide-quick-st ... tion#putty
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mcnahum
Posts: 32
Joined: Mon Oct 19, 2020 7:25 pm

Re: Passwordless SSH Access on dietpi any specific process to follow

Post by mcnahum »

I'm using terminal from macOS
mcnahum
Posts: 32
Joined: Mon Oct 19, 2020 7:25 pm

Re: Passwordless SSH Access on dietpi any specific process to follow

Post by mcnahum »

not sure why but the file must be on both location so I did cp /etc/dropbear/authorized_keys ~/.ssh/authorized_keys and it fixed it
Post Reply