openwrt-xiaomi / xmir-patcher

Firmware patcher for Xiaomi routers
643 stars 97 forks source link

SSH error #31

Open MaginaHou opened 3 months ago

MaginaHou commented 3 months ago

%4062P5TR@S`7N_$DZRAU9J I am using a Xiaomi 10 Gigabit router, and in the early stages, SSH can be enabled through this software. After opening it, I tried flashing the device a few more times. Now, when I click on 2, it will report an error as shown in the picture. Could you please help me identify where the problem lies.

Polarisazz commented 3 months ago

Same here

Polarisazz commented 2 months ago

Hey,I've found a solution.Just use telnet to access the router,enter "sed -i '/flg_ssh=nvram get ssh_en/{:loop; N; /\n.channel=\/sbin\/uci get \/usr\/share\/xiaoqiang\/xiaoqiang_version.version.CHANNEL\n.return 0\n.*fi/!b loop; d}' /etc/init.d/dropbear",enter "/etc/init.d/dropbear restar".Then you can use SSH.

MaginaHou commented 2 months ago

Hey,I've found a solution.Just use telnet to access the router,enter "sed -i '/flg_ssh=nvram get ssh_en/{:loop; N; /\n.channel=/sbin/uci get /usr/share/xiaoqiang/xiaoqiang_version.version.CHANNEL\n.return 0\n.*fi/!b loop; d}' /etc/init.d/dropbear",enter "/etc/init.d/dropbear restar".Then you can use SSH.

Thx. I will try it.

lan493 commented 2 weeks ago

Hey,I've found a solution.Just use telnet to access the router,enter "sed -i '/flg_ssh=nvram get ssh_en/{:loop; N; /\n.channel=/sbin/uci get /usr/share/xiaoqiang/xiaoqiang_version.version.CHANNEL\n.return 0\n.*fi/!b loop; d}' /etc/init.d/dropbear",enter "/etc/init.d/dropbear restar".Then you can use SSH. 不对啊老哥,telnet命令之后没有作用,还是你哪里打错了