In case of SSH public key authentication failure...

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 265

PostPosted: Mon Dec 07, 2020 9:03    Post subject: In case of SSH public key authentication failure... Reply with quote
In case of SSH public key authentication failure when it was previously working fine, it may be time to upgrade to a more recent version of dd-wrt that has an updated dropbear/SSH version.

I found this out after encountering this failure, with SSH debug message "send_pubkey_test: no mutual signature algorithm", after upgrading to Fedora 33 which changed the crypto policy.

There are several solutions outlined in a couple of helpful links:
https://dev.to/bowmanjd/upgrade-ssh-client-keys-and-remote-servers-after-fedora-33-s-new-crypto-policy-47ag
https://www.reddit.com/r/Fedora/comments/jhxbdh/no_ssh_public_key_auth_after_upgrade_to_fedora_33/

The ideal one is to update the server (dd-wrt), and it's what prompted me to finally let go of the venerable Kong r42070. The BS r44863 build works, with its dropbear version 2020.80.

One detail I haven't yet figured out: my ssh-rsa key works, but if I remove it and leave just my ssh-ed25519 key, it fails. Curious, because support for ed25519 authorized_keys is apparently present since dropbear 2020.79. https://github.com/mkj/dropbear/releases
Sponsor
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6436
Location: UK, London, just across the river..

PostPosted: Mon Dec 07, 2020 16:43    Post subject: Reply with quote
ed25519 is not available yet...or it least im not aware witch router has it...there was a discussion how to make it work on Netgear R9000... but im unaware if it's supported yet... SSh key i use is 3072Bit and it should be fine, i haven't tried 4096Bit yet, but it may be supported too...

not bad idea to start with, your router model as guessing it is equal of guessing the lotto...

that old Kong build is very old, a lot of security updates since...not bad idea to update to a recent build...
as we don't know your router, it will not be possible to advise, witch build to update too...but lets say 44715 will do... as builds after it there is a lot of WIP...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12881
Location: Netherlands

PostPosted: Mon Dec 07, 2020 17:36    Post subject: Reply with quote
ed25519 is an option and is not compiled in as it takes up some space and it also has to work on low flash RAM routers.

Code:
/* Ed25519 is faster than ECDSA. Compiling in Ed25519 code increases
   binary size - around 7,5kB on x86-64 */
#define DROPBEAR_ED25519 0

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 265

PostPosted: Mon Dec 07, 2020 19:35    Post subject: Reply with quote
@egc Thanks for clearing that up -- support does not mean the feature is included by default. Now it makes sense.

@Alozaros My router is (yet another) r7000. I didn't mention it because I don't see what it has to do with SSH support in dd-wrt. In any case, r44863 seems good so far with one day uptime.
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 265

PostPosted: Tue Dec 08, 2020 6:02    Post subject: Reply with quote
Alozaros wrote:
SSh key i use is 3072Bit and it should be fine, i haven't tried 4096Bit yet, but it may be supported too...

Btw, 4096 bit RSA key length is supported. I've been using it for quite a while, with even with Kong r42070.

Fun tip: checking the length can be done with
Code:
ssh-keygen -lf ~/.ssh/id_rsa.pub
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6436
Location: UK, London, just across the river..

PostPosted: Tue Dec 08, 2020 14:50    Post subject: Reply with quote
fizikz wrote:

@Alozaros My router is (yet another) r7000. I didn't mention it because I don't see what it has to do with SSH support in dd-wrt. In any case, r44863 seems good so far with one day uptime.


yep R7000 is a Broadcom and all resent BS work regarding WiFi was affecting Atheros Smile so 44863 it should be fine...even new 44944 should be fine too as
"ath to wlan" switch names is not applied to broadcoms yet...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 265

PostPosted: Wed Dec 09, 2020 4:21    Post subject: Reply with quote
Alozaros wrote:
"ath to wlan" switch names is not applied to broadcoms yet...

You mean there are "goodies" coming down the pipe? Twisted Evil Thanks for the warning, I'll stay put on this release until the dust settles and there's a good reason to switch.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum