Ssh-copy-id to RAK7268C

Hi,

I want to

ssh-copy-id -i ~/.ssh/myId [email protected]

to my RAK7268C … but the Gateway does not remember the cert.

any idea?

 Thomas

Hello @thlandgraf,
Welcome to the forum.
You can use the WEB UI or WISDM for configuration.
Could you clarify what exactly you want to set/copy from the gateway?

Best Regards,
Nikola

Hi Nikola,

I am trying to [OpenWrt Wiki] Dropbear key-based authentication but no success yet.

 Thomas

Hi,
Where do you get stuck? Have you generated the key? Do you have any errors to work on or just no response to the command?

Nikola

Hi,

I generated the keys and did the ssh-copy-id but when I try to log in I am still prompted for the password.

 Thomas

Hi,
Have you set the option "PasswordAuth " to off in /etc/config/dropbear ?

Nikola

Hi Nikola,

I tried, now I am locked out:

[email protected]: Permission denied (publickey).

 Thomas

Hi,

after restoring the GW and fiddeling around, I found a solution:

On my client I have to:

ssh -i ~/.ssh/rak_rsa -o PubkeyAcceptedKeyTypes=ssh-rsa root@IP_OF_RAK

to successfully log in. -o PubkeyAcceptedKeyTypes=ssh-rsa is the important part.

 Thomas
1 Like

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