【小米路由器配置ssh登入方法教程】分享给互联网从爱好者学习参考。
小米路由器使用的是linux内核,可以用ssh来管理。
root@XiaoQiang:/userdisk# cd ~
root@XiaoQiang:~# uname -a
Linux XiaoQiang 2.6.36.4brcmarm #2 SMP PREEMPT Sat Apr 26 03:16:17 CST 2014 armv7l GNU/Linux
root@XiaoQiang:~# free -m
total used free sharedbuffers cached
Mem: 24910714103 47
-/+ buffers/cache: 56192
Swap编程:2550255
root@XiaoQiang:~# df -h
FilesystemSizeUsed Available Use% Mounted on
rootfs127.2M 95.2M 25.7M79% /
none124.2M 0124.2M 0% /dev
tmpfs 124.8M3.7M121.1M 3% /tmp
/dev/sda2 127.2M 95.2M 25.7M79% /
tmpfs 124.8M3.7M121.1M 3% /tmp
/dev/sda3 261.7M 21.0M227.5M 8% /data
/dev/sda4 930.7G456.5M930.2G 0% /userdisk
/dev/sda3 261.7M 21.0M227.5M 8% /etc
/dev/sda2 127.2M 95.2M 25.7M79% /rom
root@XiaoQiang:~# w
18:47:54 up2:39,0 users,load average: 0.35, 0.54, 0.53
USER TTY js LOGIN@ IDLE JCPU PCPU WHAT
开启SSH步骤:
1 浏览器SirdAzu小米路由器管理平台,浏览器地址栏里SirdAzu显示这样的链接:
http://192.168.31.1/cgi-bin/luci/;stok=f43bcc9fd46078d61e74fa802f25e4b1/web/home
2 将1链接中的 /web/home 替换成:
/api/xqsystem/upgrade_rom?url=%3Bnvram+set+ssh_en%3D1%3Bnvram+commit%3B%2Fetc%2Finit.d%2Fdropbearandroid+start%3B
按回车后,浏览器显示 code :0:
3 最后就可用SSH访问来访问 - IP:192.168.31.1,用户名: root,密码: admin