Key based SSH between two OWRT

Hello,
i'm probably loosing something very stupid, but i can's sort out :frowning:
i'm trying to setup key based auth to be able to make unattended scp between my main router and my AP, both OWRT based.
It should be router -> AP so:

  • on the AP, i created keys:
    dropbearkey -t ed25519 -f ~/.ssh/AccessPointSSH
  • i added the pub key to the trusted key on the AP
  • i copied the pub key to the client (so my router)
  • tried executing scp toward my AP, using the copied pub key
    ssh -i /root/.ssh/AccessPointSSH.pub accesspoint.lan

What i get, is this error:
ssh: Exited: String too long

Router version is 23.05 official (x86)
AP version is 24.10-RC4 (Flint2)

I fear i'm loosing something in keys format, but can't get what..
thanks

Try

As your client needs to identify with the private key, not public.

2 Likes

Yes the first point is that you register your public key at the other end, then use -i <yourprivatekey> to connect.

dbconvert may also be needed since dropbear (client) does not store private keys in the standard openssh format.

indeed it was stupid lol
sorry and thanks for being nice at xmas, i did not deserve it :smiley:

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.