Instructions for officially obtaining SSH on Xiaomi Router Mini:We do everything on our own
fear and risk!
Internet is required on the router to link it to the xiaomi account!
1) You need to download the development (developed) firmware version for Xiaomi Router Mini (hereinafter referred to as X-RM).
You can get it at -
http://www1.miwifi.com/miwifi_download.html2) You need to flash the dev version of the firmware via the web-interface of the router, for this:
Go to the address 192.168.31.1 (if we did not change the subnet / ip of the router in the settings, then the address would be such), press the firmware selection button, point it to the .bin file we downloaded in the first paragraph and press the button.
After that, the router will start updating the firmware - it lasts 1-2 minutes, as soon as it ends - you need to go to the web-interface of the router and perform the initial setup.
3) Now we need to bind the Xiaomi account to X-RM, if it is not there, it can be registered at
https://account.xiaomi.com/(there is a button to switch to English at the bottom of the page, or use Google translate), if you register by mail - don’t choose mail.ru and other Russian mail services - a confirmation letter can go 24-72 hours or not come at all, use Gmail!
We also need to install the application on a PC or phone, and from this device you need to bind the router to your Xiaomi account, I think the easiest way to do this is using the android client on the phone / tablet.
4) After you bind the router to your account, you need to go to
https://d.miwifi.com/rom/ssh, on this page you need to log in to xiaomi account, and after you will see something like this page
Near the desired router (you can link several to one account - as can be seen in the screenshot), press the button, and confirm the selection with the right button. The correct result will be the downloaded file miwifi_ssh.bin
5) you need to find a USB-Flash drive, preferably not a very large volume (1-16GB) - formatted in fat32, it is desirable that it is empty, copy miwifi_ssh.bin to it, then you can proceed to unlock SSH, for this:
Disconnect from the router power cable. USB-Flash disk inserted into the USB connector of the router. We press the reset button on the router with a thin sharp object (a toothpick for example). Connect the power cable. as soon as the router quickly blinks orange LED - release the reset button. USB-Flash disk can be removed after the router is completely turned off.
As soon as the router boots up - you can try to connect via SSH to your router. Username root, Password - on page
https://d.miwifi.com/rom/sshnext to root, the connection port is 22 (standard).
The router has SSH available only via LAN. To connect to it via WAN, you need to change the configs / etc / config / dropbear and / etc / config / firewallIf SSH is missing, then you have made a mistake somewhere, most likely either the router is not bound, or after the 're-binding' you need to download a new .bin file.
After you connect via SSH - I recommend changing the user's password using the command:
After entering it, you will need to enter a new password and confirm it.
Post has been editedlightvik - 19.01.18, 12:04