Open jksmurf opened 1 month ago
This model has root user with blank password (after adding to integration).
Yes, I can get to the # prompt but it doesn't look like a screen you normally see when you logon using putty.
You're in an empty folder. That's why ls doesn't show anything.
Thank you. Is there a way to WinSCP into these Gateways, I just find it easier to use WinSCP to check folders/files, but I keep getting connection refused?
Thank you AlexxIT, but I’m sorry that’s just gone way over my head. I’ve no idea what to do with that 🙏
This is command for run FTP
Thanks @AlexxIT.
I did a bit of searching around based on that information and got it to work, so for the benefit of others wanting to use WinSCP to poke around in the Gateway File System (own risk!), I jotted down a few steps:
After you have removed the password using the UART approach, then login to the Gateway using Putty, username 'root' and no password (just hit enter);
After you login using Putty, IF you WANT to add a password back (you do not have to!), issuing this (where #!/bin/sh is the prompt in Putty, you might just see a '#' per the pics and not '#!/bin/sh'), will change the password to "xxxxxx"; remember the new password!
#!/bin/sh
echo "root:xxxxxx" | chpasswd
Note: If you add a password (please remember it!) and want to revert back to NO password, after you login (with your current password), just run:
#!/bin/sh
echo "root:" | chpasswd
Note a: If you do the above (echo "root:" | chpasswd) Putty will now give you a password prompt, just hit 'Enter' to login i.e. No Password.
Note b: If you want to delete the password for the user root (i.e. return it to the completely removed password state post UART), issue this at the prompt:
#!/bin/sh
passwd -d root
#!/bin/sh
/usr/sbin/telnetd
/usr/bin/tcpsvd -E 0.0.0.0 21 ftpd -w / &
I believe you only need to issue it once (maybe unless you reboot the device).
This was my experience, the brief writeup is for users at my level of expertise (low!). There may be other or more correct ways to do these things and I would be happy to have someone add or correct me, no offense.
HTH
k.
I have a ZNDMWG04LM with 1.07_0019 FW.
I did the UART connection and checked the output and succesfully got the Key (not the Token), based on [methods detailed in 1166]. This allowed me to ADD it to AlexxIT's Gateway 3 interface. In fact I did two of them. (https://github.com/AlexxIT/XiaomiGateway3/issues/1166).
My question however is about the need for telnet following integration; I can access the Gateway menu using Putty, but no Admin/Password pair matches, so I cannot actually log in. I tried admin/admin, admin/blank, admin/123123 and a few other combinations. I tried the 5-2-2-2-2-2-2 setting.
Thx