No SSH Authenticating

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
AGora
DD-WRT Novice


Joined: 21 Jul 2021
Posts: 8

PostPosted: Wed Jul 21, 2021 13:53    Post subject: No SSH Authenticating Reply with quote
I am trying to connect to ASUS RT-N12 with DD-WRT v24-sp2 (03/19/12) mini installed by using privat-public key.

I generated keys by PUTTYgen, add public key to http://192.168.1.1/applyuser.cgi -> Dervices -> Secure Shell -> Authorized Keys
In Kitty:
- Connection -> Data - Auto-login username = root
- Connection -> SSH -> Auth - link to privat key

Connection hangs up after terminal message:
Authenticating with public key "rsa-key-20210721"

Please, advice. Thanks!


Last edited by AGora on Wed Jul 21, 2021 14:28; edited 1 time in total
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Wed Jul 21, 2021 14:03    Post subject: Reply with quote
Please consider upgrading to a more recent release and re-testing.

https://forum.dd-wrt.com/wiki/index.php/Asus_RT-N12

https://wikidevi.wi-cat.ru/ASUS_RT-N12_series

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
AGora
DD-WRT Novice


Joined: 21 Jul 2021
Posts: 8

PostPosted: Wed Jul 21, 2021 14:52    Post subject: Reply with quote
kernel-panic69 wrote:
Please consider upgrading to a more recent release and re-testing.


Thanks. I installed DD-WRT 2 years ago with the same files as pointed in current manual:
dd-wrt.v24-14896_NEWD-2_K2.6_mini_RT-N12.trx
dd-wrt.v24-18774_NEWD-2_K2.6_mini.bin
dd-wrt.v24-33215_NEWD-2_K3.x_mega.bin
https://forum.dd-wrt.com/wiki/index.php/Asus_RT-N12#RT-N12D1_Installation_.28updated_March_21_2018.29

It even worked fine than, but now something happens.

I have ASUS RT-N12 D1 hardware revision.
AGora
DD-WRT Novice


Joined: 21 Jul 2021
Posts: 8

PostPosted: Wed Jul 21, 2021 15:38    Post subject: Reply with quote
It also hangs up when logging with as "root" with "admin" pass (there is no other user in router). But it gives "Access denied" with any other pass.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Wed Jul 21, 2021 16:48    Post subject: Reply with quote
You're not on a current enough version with the latest dropbear update. That is why it has the item "Newer firmware can be found here: ..."
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
AGora
DD-WRT Novice


Joined: 21 Jul 2021
Posts: 8

PostPosted: Wed Jul 21, 2021 17:39    Post subject: Reply with quote
What build should I use? There are only 5 similar builds for ASUS but no exact match:

asus-rt-n10plus
asus-rt-n15
asus-rt-n18u
asus-rtn13u
asus-rtn13ub1

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2021/07-12-2021-r47040/
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5650

PostPosted: Wed Jul 21, 2021 17:50    Post subject: Reply with quote
Look in the Broadcom folders, K26 or K3X.
AGora
DD-WRT Novice


Joined: 21 Jul 2021
Posts: 8

PostPosted: Wed Jul 21, 2021 18:14    Post subject: Reply with quote
Just upgraded through Administration - Firmware Upgrade and use file:
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2021/07-12-2021-r47040/broadcom_K3X/dd-wrt.v24-47040_NEWD-2_K3.x_mega.bin

Behavior is still the same:

Using username "root".
Pre-authentication banner message from server:
| DD-WRT v3.0-r47040 mega (c) 2021 NewMedia-NET GmbH
| Release: 07/12/21
| Board: Asus RT-N12B
End of banner message from server
Authenticating with public key "rsa-key-20210721"

and freezes.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Wed Jul 21, 2021 19:00    Post subject: Reply with quote
Wondering if it is a quirk with KiTTY or the version you are using or something. I have had no issues with this, are you sure you didn't create the wrong length key?
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
AGora
DD-WRT Novice


Joined: 21 Jul 2021
Posts: 8

PostPosted: Thu Jul 22, 2021 16:54    Post subject: Reply with quote
I try Putty and another pair of keys. No effect. Thanks for the attempt to help! May me buy another router.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Thu Jul 22, 2021 17:11    Post subject: Reply with quote
Did you use the special formatting as outlined in the wiki:
https://wiki.dd-wrt.com/wiki/index.php/Telnet/SSH_and_the_Command_Line

_________________
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
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Thu Jul 22, 2021 20:52    Post subject: Reply with quote
AGora wrote:
I try Putty and another pair of keys. No effect. Thanks for the attempt to help! May me buy another router.


Did you usa dropbearkey to generate the key? Or did you copy it from some Linux's OpenSSH .ssh folder?

DD-WRT Forum :: View topic - Create SSH public key in DD-WRT?
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=988361

How to install and configure Dropbear on Linux - LinuxConfig.org
https://linuxconfig.org/how-to-install-and-configure-dropbear-on-linux

DD-WRT Forum :: View topic - changing DropBear _HOST_ key, not the client key
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1085230

README in src/router/dropbear – DD-WRT
https://svn.dd-wrt.com//browser/src/router/dropbear/README?rev=3378

An old, unanswered thread:

DD-WRT Forum :: View topic - dropbear rsa key issue in 18946
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=685777


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
AGora
DD-WRT Novice


Joined: 21 Jul 2021
Posts: 8

PostPosted: Mon Aug 16, 2021 10:02    Post subject: Reply with quote
egc wrote:
Did you use the special formatting ...

Yes, sure: "Remember to enter your key as an entire characters line (no space, tab...)"
AGora
DD-WRT Novice


Joined: 21 Jul 2021
Posts: 8

PostPosted: Mon Aug 16, 2021 10:05    Post subject: Reply with quote
mwchang wrote:
Did you usa dropbearkey to generate the key? Or did you copy it from some Linux's OpenSSH .ssh folder?


I generate the pair of keys by PUTTYgen
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Mon Aug 16, 2021 10:13    Post subject: Reply with quote
AGora wrote:
mwchang wrote:
Did you usa dropbearkey to generate the key? Or did you copy it from some Linux's OpenSSH .ssh folder?


I take the pair of keys from PUTTYgen

I believe you need to use dropbearconvert to convert the key into Dropbear format... I haven't used this feature yet. Better use dropbearkey to generate the keys! But then I dunno whether Putty understand Dropbear keys. I only knew that Putty cannot take OpenSSH keys directly, but to convert it using PuttyGen.

The following link talks about using Dropbear key generation:

How to create a root keypair files for dropbear, SSH and PuTTY inside an ESXi Server - VMware Technology Network VMTN
https://communities.vmware.com/t5/VI-VMware-ESXi-3-5-Documents/How-to-create-a-root-keypair-files-for-dropbear-SSH-and-PuTTY/ta-p/2793732

The following thread was about using OpenSSH keys I believe....

DD-WRT Forum :: View topic - OpenSSH problems Netgear R7000
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329096&highlight=dropbear



_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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