On a GL_Inet 1800AX router with firmware 4.7.0 I want to login via SSH with private key.
First I installed OpenSSH beside Dropbear as I am more familiar with the first, just another port number 2222.
I tried ssh -vv -p 2222 -i ~/.ssh/id_ed52219 -o ChallengeResponseAuthentication=yes root@IPROUTER
, but it keeps asking for a password even after I added the public key id_ed52219.pub
to /root/.ssh/authorized_keys' and did
ssh-copy-id -p 2222 root@IPROUTER`.
Then I tried as well copying the public key via the LuCI interface for using the dropbear SSH, not OpenSSH: https://IPROUTER:8443/cgi-bin/luci/admin/system/admin/sshkeys, but to no avail.
How can I enable private key logging in ?