dropbear & putty, without password

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
pakikje
Posts: 126
Joined: Fri Nov 11, 2016 3:04 pm

dropbear & putty, without password

Post by pakikje »

Hello guys,

i am looking for a tutorial that will help me with ssh-ing into dietpi without password (using a key). I am using dropbear (DietPi) and Putty (Windows)

Thnx!
User avatar
WarHawk
Posts: 732
Joined: Thu Jul 20, 2017 8:55 am

Re: dropbear & putty, without password

Post by WarHawk »

https://www.cybermilitia.net/2009/02/28 ... on-debian/

I think it has to do with keygen and stuff...look at that link above and try the keygen stuff
Remember dropbear cannot do SCP, openssh can
pakikje
Posts: 126
Joined: Fri Nov 11, 2016 3:04 pm

Re: dropbear & putty, without password

Post by pakikje »

I guess i am not clever enough. can't figure it out.

Workaround (sort-off): Solarputty (saves login credentials)
User avatar
MichaIng
Site Admin
Posts: 3088
Joined: Sat Nov 18, 2017 6:21 pm

Re: dropbear & putty, without password

Post by MichaIng »

@pakikje
I just copy&paste from my own docs here: viewtopic.php?f=9&t=5391#p16028

It is just rough without much sentences to it, if it's isn't enough for you I will make a proper step-by-step guide out if it.
User avatar
vnzkay
Posts: 10
Joined: Thu May 20, 2021 6:42 pm
Location: Los Angeles, CA
Contact:

Re: dropbear & putty, without password

Post by vnzkay »

There's a tool for that! It comes with lots of distros. It's here: https://linux.die.net/man/1/ssh-copy-id

Get three things, the location of you SSH public key, and your dietpi's user/hostname (e.g. dietpi@abc).

For an SSH key at `~/.ssh/id_rsa.pub` and a dietpi with the user/hostname `dietpi@abc`, I'd run

ssh-copy-id -i ~/.ssh/id_rsa.pub dietpi@abc

That says copy my public key (at ~/.ssh/id_rsa.pub) to the `authorized_keys` for dietpi on hostname abc.
User avatar
MichaIng
Site Admin
Posts: 3088
Joined: Sat Nov 18, 2017 6:21 pm

Re: dropbear & putty, without password

Post by MichaIng »

Jep, that tool is part of the openssh-client package. We just found a bug in it where it by default copies the authorised key to the wrong location when Dropbear is the SSH server it connects to: https://github.com/MichaIng/DietPi/issues/4380
I contacted the author about it already, so far no answer.
Post Reply