Instructions for obtaining access to the SSH {
informal method} On the router [Xiaomi Router]:
1 - DEV need to install the firmware version and update it to the latest version of OTA, link to a page with firmware -
bbs.xiaomi.cn2 - after the firmware and update the device to the latest version - properly turn off the router via a web interface, the router dismantle and take out the hard drive
3 - connect the hard drive to a computer with linux, I have earned correctly on xubuntu 14.04 (on fedora failed to mount)
4 - As soon as you connect the hard drive will be 4 in [~ 128MB / ~ 128MB / ~ 256MB / ~ 900GB] we are interested in section 256 mb [most likely it will be sd (x) 3] - install it as it is convenient.
5 - from the root! go to the file manager (on Ubuntu this can be done through the command sudo) and open in a text editor, a file / etc / shadow
contents of the file looks like this:
root: $ 1 $ Uv69t2BL $ rsYh2eEPEB..Et3QLkLmf1: 16255: 0: 99999: 7 :::
daemon: *: 0: 0: 99999: 7 :::
ftp: *: 0: 0: 99999: 7 :::network: *: 0: 0: 99999: 7 :::
nobody: *: 0: 0: 99999: 7 :::
2882303761517170443: Ag6iQQkpHCcZY: 16196: 0: 99999: 7 :::
we need to change the contents of the $ 1 $ Uv69t2BL $ rsYh2eEPEB..Et3QLkLmf1 - this line is the password hash. we need to replace it with a hash of the password - how to do it is described in paragraph 6
6 - go to the command prompt and enter the command openssl passwd -1, later in the console it will ask 2 times for a password - enter the password for that will go over SSH to the router.
get something like $ 1 $ EYdI7hvU $ Za.jo6jyqe88 / rOrW3SEQ0 - our new hash, we replace them old hash of the file / etc / shadow as described in paragraph 5.
7 - save the changes, switch off the PC, router Sobieraj back and include it
8 - try to connect by SSH [root name, password - one that we introduced in paragraph 6] - if that's right, you connect to the router as the root user
Result
vik @ I5-U: ~ / Stable $ ssh
[email protected][email protected]'s password:
BusyBox v1.19.4 (2014-07-03 21:21:38 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
-----------------------------------------------------
Welcome to XiaoQiang!
-----------------------------------------------------
root @ XiaoQiang: ~ #
All actions are performed at your own risk. examining the router you lose garanitiyu from xiaomi and will not be able to return the router for repair of the Chinese.Post has been editedlightvik - 03.08.14, 19:23