You can use ~/.ssh/authorized_keys in the same way as with OpenSSH, Unless I'm misreading what the documentation ( GitHub repo) says:
When I try to access, it gives me a "Permission denied (publickey)" error: $ ssh -v -i ~/.ssh/id_rsa OpenSSL 1.0.2j ĭebug1: Reading configuration data /etc/ssh/ssh_configĭebug1: Connecting to 192.168.1.1 port 22.ĭebug1: key_load_public: No such file or directoryĭebug1: identity file /home/chazy/.ssh/id_rsa type -1ĭebug1: identity file /home/chazy/.ssh/id_rsa-cert type -1ĭebug1: Enabling compatibility mode for protocol 2.0ĭebug1: Local version string SSH-2.0-OpenSSH_7.4ĭebug1: Remote protocol version 2.0, remote software version dropbearĭebug1: Authenticating to 192.168.1.1:22 as 'root'ĭebug1: kex: algorithm: kex: host key algorithm: ssh-rsaĭebug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: noneĭebug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: noneĭebug1: expecting SSH2_MSG_KEX_ECDH_REPLYĭebug1: Server host key: ssh-rsa SHA256:1EFA75uwLp+4hBW0t3aaY05QjLzYd4jjDWoULAzF/8oĭebug1: Host '192.168.1.1' is known and matches the RSA host key.ĭebug1: Found key in /home/chazy/.ssh/known_hosts:1ĭebug1: Authentications that can continue: publickeyĭebug1: Next authentication method: publickeyĭebug1: Trying private key: /home/chazy/.ssh/id_rsaĭebug1: No more authentication methods to try. I put the file on a Apache server (in my local computer) and download it on the router using wget (so the downloaded file gets root as owner/group) and then changed the permissions to 0600 (same for the client but with my user). I uploaded the public key ( authorized_keys) to /root/.ssh. Ssh-keygen -y -f id_rsa > authorized_keys Currently I only have telnet access and I installed dropbear and is running (using opkg on a usb drive connected to the router).įrom the beginning, what I did was generate a private key and decrypt it (since dropbear doesn't support this yet) and the public one: cd. I'm trying to gain ssh access to my router.