Access via SSH to the router.

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
12

Access via SSH to the router.

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Access via SSH to the router.
Access via SSH to the router.
2023-07-15 09:57:41 - last edited 2023-09-05 14:44:49
Model: ER8411  
Hardware Version: V1
Firmware Version: 1.1

Hello, after updating to version 1.1, I noticed that I can't use the standard Bash shell anymore, but instead there's a Cisco-like interface available. How can I switch back to the normal SSH mode like in version 1.0.3?

  1      
  1      
#1
Options
1 Accepted Solution
Re:Access via SSH to the router.-Solution
2023-09-05 13:25:03 - last edited 2023-09-05 14:44:49

  @mati2762 I figured it out, the first password for ssh to login as root was to hash the mac with the local admin username in accounts (for me, trans_sophie), then to access debug you do the same thing hashing the mac and user but instead use the device account from the bottom of site settings (for me, admin).  Really friggen dumb.

Recommended Solution
  2  
  2  
#10
Options
11 Reply
Re:Access via SSH to the router.
2023-07-15 11:39:33

  @mati2762 

 

yes, it seems like they can't make up their minds, I had the opportunity to reboot the ER605v2 a while ago from SSH, but that function is gone.

do you know of any hidden reboot commands that can be run via SSH

 

  0  
  0  
#2
Options
Re:Access via SSH to the router.
2023-07-16 10:10:34

  @mati2762 

 

Before switching to version 1.1, I had added a script to the crontab, and now after the update, I can't even remove it :(

  0  
  0  
#3
Options
Re:Access via SSH to the router.
2023-07-16 23:11:26 - last edited 2023-07-17 00:36:16

  @mati2762 That's because they added the new CLI config options. There's a hidden command called debug that allows access to the regular shell. It needs root password again, as you can see in this screenshot:

 

  1  
  1  
#4
Options
Re:Access via SSH to the router.
2023-07-17 06:12:04

  @EmuAGR 

 

Ok, thanks, but were do i  find root password?  or how can I set root password to the device?

EmuAGR wrote

  @mati2762 That's because they added the new CLI config options. There's a hidden command called debug that allows access to the regular shell. It needs root password again, as you can see in this screenshot:

 

 

  1  
  1  
#6
Options
Re:Access via SSH to the router.
2023-07-17 08:20:41

  @mati2762 

 

It's great that something like this exists; we already have half of the success. I used it to generate a password for the root, and I can log in, but the password doesn't work in debug mode anymore.

 

  • Compute the root password
    1. Append the standalone web GUI username to the MAC address to make a string in this format:    xx:xx:xx:xx:xx:xxadmin
      (My local username is "admin" in this example)
    2. Find the MD5 hash of the string from step 1
    3. The first 16 characters of the MD5 hash in step 2 will be the root password

 

  1  
  1  
#7
Options
Re:Access via SSH to the router.
2023-07-17 08:46:15 - last edited 2023-07-17 08:50:38

  @mati2762 Hello, your local username would be "root", not "admin". Local username means the username in /etc/passwd. Also, check with capital and non-capital letters in the MAC, I can't remember which.

  1  
  1  
#8
Options
Re:Access via SSH to the router.
2023-07-18 14:01:24

  @mati2762 

 

I used my own user account (not admin) to generate the password. This password works with SSH, but not with debug. I also tried other combinations, but unfortunately, they don't work.

  0  
  0  
#9
Options
Re:Access via SSH to the router.-Solution
2023-09-05 13:25:03 - last edited 2023-09-05 14:44:49

  @mati2762 I figured it out, the first password for ssh to login as root was to hash the mac with the local admin username in accounts (for me, trans_sophie), then to access debug you do the same thing hashing the mac and user but instead use the device account from the bottom of site settings (for me, admin).  Really friggen dumb.

Recommended Solution
  2  
  2  
#10
Options
Re:Access via SSH to the router.
2023-09-05 14:44:45

  @JessEH thx, it is work :)

  0  
  0  
#12
Options
Re:Access via SSH to the router.
2024-02-10 18:58:26

Has anyone tried this successfully on the EAP ap's?  So far no go on the eap670.  Tried both lower and upper case for the mac.

  0  
  0  
#13
Options