SSH - access denied

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
altjx
DD-WRT Novice


Joined: 19 Jul 2011
Posts: 12

PostPosted: Tue Oct 11, 2011 2:41    Post subject: SSH - access denied Reply with quote
What password does SSH use in the DD-WRT firmware? I have a DIR-615 router. I enabled SSH but it's telling me access denied. I'm using the same credentials I use to log into the web interface.
Sponsor
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7643

PostPosted: Tue Oct 11, 2011 3:40    Post subject: Reply with quote
Please make your self familiar with all the gui settings.
_________________
Kernel panic: Aiee, killing interrupt handler!
altjx
DD-WRT Novice


Joined: 19 Jul 2011
Posts: 12

PostPosted: Tue Oct 11, 2011 3:41    Post subject: Reply with quote
LOM wrote:
Please make your self familiar with all the gui settings.


Sorry dude, looked all over but didn't notice until I ran across another forum
radical_mit2
DD-WRT Novice


Joined: 19 Oct 2011
Posts: 5

PostPosted: Wed Oct 26, 2011 13:16    Post subject: Reply with quote
I had this same issue, but when I switched to user root, I could login without any problems.
upsangel
DD-WRT Novice


Joined: 11 May 2013
Posts: 5

PostPosted: Thu May 30, 2013 15:41    Post subject: Reply with quote
i have the same issue on the WZR-HP-G300NH2, only after reboot i can login the webgui / ssh.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7773
Location: Dresden, Germany

PostPosted: Thu May 30, 2013 15:54    Post subject: Reply with quote
username for ssh/telnet is always root. password is the same as for web interface
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
upsangel
DD-WRT Novice


Joined: 11 May 2013
Posts: 5

PostPosted: Sat Jun 01, 2013 10:04    Post subject: Reply with quote
BrainSlayer wrote:
username for ssh/telnet is always root. password is the same as for web interface


sure it is, I have no problem log-in right after the reboot of my router, but it stuck some time (within 24hr) then it can't be ssh/telnet anymore.

neither can I log in to the webgui.

very strange... I'm using v24-sp2 std (21223 build), I am trying to downgrade it to try another version

Mod note 12.08.25: This is probably due to the security mechanism which limits attempts to login that has been well-discussed. Too many bad attempts result in a 5-minute lockout and will perpetuate if you continue with any attempts until the lockout of your IP is cleared.
bescritt
DD-WRT Novice


Joined: 12 Jan 2015
Posts: 3

PostPosted: Sat Jan 17, 2015 10:35    Post subject: Reply with quote
radical_mit2 wrote:
I had this same issue, but when I switched to user root, I could login without any problems.


Yep. After reading man ssh I found that one can do this:
Code:
ssh -l root 192.168.1.1


Problem solved and no need to sudo.

Thanks for giving me a step in the right direction.

The following is purely for SEO to help others find this fix:
Code:
owner@192.168.1.1's password:
Permission denied, please try again.
david007co
DD-WRT Novice


Joined: 23 Jun 2019
Posts: 4

PostPosted: Tue Nov 19, 2019 1:39    Post subject: Reply with quote
BrainSlayer wrote:
username for ssh/telnet is always root. password is the same as for web interface


This worked.
This is the kind of help we look for here.
Thanks.
skippyV
DD-WRT Novice


Joined: 01 Dec 2025
Posts: 11

PostPosted: Mon Dec 08, 2025 18:40    Post subject: Reply with quote
Just wanted to add my two cents. Using build 62606 with Netgear R6700V2.

During the install I had to create a username which is used to login to the DD-WRT GUI.

Since admin functionality is used with the GUI, when I try to SSH in, I assumed I could use that login created during install, but the attempts always result in "ACCESS DENIED". But if I use "root" with my password, the same password setup for my defined username, then SSH works.

This disconnect may only be in my head but thought this description my help someone else who might be similarly confused. Confused
Alozaros
DD-WRT Guru


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

PostPosted: Mon Dec 08, 2025 18:53    Post subject: Reply with quote
skippyV wrote:
Just wanted to add my two cents. Using build 62606 with Netgear R6700V2.

During the install I had to create a username which is used to login to the DD-WRT GUI.

Since admin functionality is used with the GUI, when I try to SSH in, I assumed I could use that login created during install, but the attempts always result in "ACCESS DENIED". But if I use "root" with my password, the same password setup for my defined username, then SSH works.

This disconnect may only be in my head but thought this description my help someone else who might be similarly confused. Confused



-after install, by default ssh is disabled...
-CLI interface always uses a root for username, its always been like that...
-after install you need to add/set your credentials and then Telnet is enabled by default...and..its using root as a username, as always...
-so, for telnet and ssh always Username is root

_________________
Atheros
TP-Link WR1043NDv2 -DD-WRT 62606 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear R7800 -OpenWRT Kong 25.12
Netgear XR500 -DD-WRT 64210 GTW/SmDNS/DoT,AD-Blk,Forced DNS,AP&Net Isolation,x2VLAN,Vanilla
Netgear R7800 --DD-WRT 64210 Gateway/DNSCryptv2,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla,VPN cli
Netgear R9000 --DD-WRT 64137 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Dynalink DL-WRX36-DDWRT 64137
Broadcom
Netgear R7000 --DD-WRT 64137 GTW/DNScrypt-proxy2/AD-Block,IPset Firewall,Forced DNS,x4VLAN,VPN cli
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
kernel-panic69
DD-WRT Guru


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

PostPosted: Mon Dec 08, 2025 20:04    Post subject: Reply with quote
Moved to General, because not a hardware-specific question. No further comment.
_________________
"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...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
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