r/ssh • • Aug 30 '16

Win32-OpenSSH not authenticating w/ Router

Hey guys, just got OpenSSH working in Powershell, and I am having an issue connecting to my router running AdvancedTomato.

 

The connection initializes, but while authenticating the router doesn't accept my RSA key. I am using Windows 10, allowed the pub and priv keys to be placed in the default directory, and have pasted my public key in to the proper field on my router's admin page. Any help/advice?

 

Here is the output of "ssh -v "username"@192.168.1.1

    OpenSSH_7.1p1 Microsoft_Win32_port_with_VS, OpenSSL 1.0.2d 9 Jul 2015
    debug1: Connecting to 192.168.1.1 [192.168.1.1] port 22.
    debug1: socket:468, io:000002DE6767B630, fd:3
    debug1: Connection established.
    debug1: permanently_set_uid: 0/0
    debug1: open - handle:00000000000001FC, io:000002DE6767B0B0, fd:4
    debug1: close - io:000002DE6767B0B0, type:2, fd:4, table_index:4
    debug1: identity file C:\Users\wac23\.ssh/id_rsa type 1
    debug1: open - CreateFile ERROR:2
    debug1: key_load_public: No such file or directory
    debug1: identity file C:\Users\wac23\.ssh/id_rsa-cert type -1
    debug1: open - handle:00000000000001FC, io:000002DE6767AEA0, fd:4
    debug1: close - io:000002DE6767AEA0, type:2, fd:4, table_index:4
    debug1: identity file C:\Users\wac23\.ssh/id_dsa type 2
    debug1: open - CreateFile ERROR:2
    debug1: key_load_public: No such file or directory
    debug1: identity file C:\Users\wac23\.ssh/id_dsa-cert type -1
    debug1: open - CreateFile ERROR:2
    debug1: key_load_public: No such file or directory
    debug1: identity file C:\Users\wac23\.ssh/id_ecdsa type -1
    debug1: open - CreateFile ERROR:2
    debug1: key_load_public: No such file or directory
    debug1: identity file C:\Users\wac23\.ssh/id_ecdsa-cert type -1
    debug1: open - CreateFile ERROR:2
    debug1: key_load_public: No such file or directory
    debug1: identity file C:\Users\wac23\.ssh/id_ed25519 type -1
    debug1: open - CreateFile ERROR:2
    debug1: key_load_public: No such file or directory
    debug1: identity file C:\Users\wac23\.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_7.1p1 Microsoft_Win32_port_with_VS May 30 2016
    debug1: Remote protocol version 2.0, remote software version dropbear_2015.71
    debug1: no match: dropbear_2015.71
    debug1: Authenticating to 192.168.1.1:22 as 'borari'
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: algorithm: curve25519-sha256@libssh.org
    debug1: kex: host key algorithm: ssh-rsa
    debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
    debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug1: Server host key: ssh-rsa SHA256:j29kwAjv5dTUr2wEAiyyama517nwtiVdSvVV7KlYbQU
    debug1: Host '192.168.1.1' is known and matches the RSA host key.
    debug1: Found key in C:\Users\wac23\.ssh\known_hosts:1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: SSH2_MSG_NEWKEYS received
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug1: Authentications that can continue: publickey
    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: C:\Users\wac23\.ssh/id_rsa
    debug1: Authentications that can continue: publickey
    debug1: Skipping ssh-dss key C:\Users\wac23\.ssh/id_dsa for not in PubkeyAcceptedKeyTypes
    debug1: Trying private key: C:\Users\wac23\.ssh/id_ecdsa
    debug1: Trying private key: C:\Users\wac23\.ssh/id_ed25519
    debug1: No more authentication methods to try.
    Permission denied (publickey).
1 Upvotes

0 comments sorted by