Closed causlayer closed 3 years ago
找一个U盘,fat32格式,u盘创建一个空白文件,名字叫 x-wrt-ssh.txt
然后插入U 盘,路由器启动,ssh就可以登陆了。
界面无法访问,不知道是不是有什么问题bug
请问能看看是什么问题吗?我头一次刷机,不会成为转头吧?
应该就是web界面不工作(可能有问题),你进ssh可以升级刷别的openwrt
可以进入ssh,看看web服务有没有
请问刷别的openwrt是什么意思,头一次刷路由器,还不太懂,是刷别的型号吗?
进ssh看看再说 logread 命令,结果发出来
ps auxww | grep nginx
我手上没有u盘,请问有其它办法吗?我可以把电脑和路由器做连接,这是我自己手动设置的en10.
ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=201<PERFORMNUD,DAD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
XHC20: flags=0<> mtu 0
XHC1: flags=0<> mtu 0
XHC0: flags=0<> mtu 0
en5: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether ac:de:48:00:11:22
inet6 fe80::aede:48ff:fe00:1122%en5 prefixlen 64 scopeid 0x7
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
en0: flags=8823<UP,BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
options=400
正常流程是,进入界面,开启ssh登陆,就可以登陆ssh 现在界面无法进入,只能u盘方式开启ssh了 然后去解决界面的问题
那只能搁置两天我弄个u盘试试,凭你的经验来看我这个新买的路由器不会成为砖头吧?
还没砖,上面你的信息显示,就是ssh 拒绝登陆而已,说明ssh在运行。 现在的状况就是web界面没有,web服务不正常,这个不知道问题。等进ssh可以分析,可以救回来。
你可以尝试一下,开机正常运行的状态下,摁住reset保持6秒,放开,恢复默认配置一次,看看情况如何。 如果不能解决,搞u盘开ssh吧。
试过,不行,就像现在的wifi名称是X-WRT_6C7B,只是每次的wifi名称后四位在变化,也不能恢复到出厂设置。
我刚刚找了一个u盘,已经格式化是fat32格式,u盘里创建了一个x-wrt-ssh.txt空白文件,然后重启路由器,wifi 连接到 X-WRT_6C7B,还是不能连接上啊,请问哪里操作错误了吗?
ssh -v -o PreferredAuthentications=password -o PubkeyAuthentication=no root@192.168.15.1
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/slayer/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to 192.168.15.1 [192.168.15.1] port 22.
debug1: Connection established.
debug1: identity file /Users/slayer/.ssh/id_rsa type 0
debug1: identity file /Users/slayer/.ssh/id_rsa-cert type -1
debug1: identity file /Users/slayer/.ssh/id_dsa type -1
debug1: identity file /Users/slayer/.ssh/id_dsa-cert type -1
debug1: identity file /Users/slayer/.ssh/id_ecdsa type -1
debug1: identity file /Users/slayer/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/slayer/.ssh/id_ed25519 type -1
debug1: identity file /Users/slayer/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/slayer/.ssh/id_xmss type -1
debug1: identity file /Users/slayer/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
debug1: Remote protocol version 2.0, remote software version dropbear
debug1: no match: dropbear
debug1: Authenticating to 192.168.15.1:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC:
应该是行的,不行就不得而知了。
请问x-wrt修改了路由器原厂的CFE了吗?
不会,这个设备,和openwrt官方保持一致,没有任何特别的修改。
终于用官方的程序搞定了,我直接刷了netgear最新的固件。 以后不会再出问题了。
新买的Netgear r6260,打开之后直接刷的,我下载的是x-wrt-9.0-b202108141018-ramips-mt7621-netgear_r6260-squashfs-factory.img,可以刷,然后也可以连接上,但是无法进入192.168.15.1进入到luci进行配置,提示192.168.15.1 拒绝了我们的连接请求,请问如何处理,谢谢 另外我无法ssh root@192.168.15.1。 -> % ssh -v -o PreferredAuthentications=password -o PubkeyAuthentication=no root@192.168.15.1 OpenSSH_8.1p1, LibreSSL 2.7.3 debug1: Reading configuration data /Users/slayer/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 47: Applying options for * debug1: Connecting to 192.168.15.1 [192.168.15.1] port 22. debug1: Connection established. debug1: identity file /Users/slayer/.ssh/id_rsa type 0 debug1: identity file /Users/slayer/.ssh/id_rsa-cert type -1 debug1: identity file /Users/slayer/.ssh/id_dsa type -1 debug1: identity file /Users/slayer/.ssh/id_dsa-cert type -1 debug1: identity file /Users/slayer/.ssh/id_ecdsa type -1 debug1: identity file /Users/slayer/.ssh/id_ecdsa-cert type -1 debug1: identity file /Users/slayer/.ssh/id_ed25519 type -1 debug1: identity file /Users/slayer/.ssh/id_ed25519-cert type -1 debug1: identity file /Users/slayer/.ssh/id_xmss type -1 debug1: identity file /Users/slayer/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.1 debug1: Remote protocol version 2.0, remote software version dropbear debug1: no match: dropbear debug1: Authenticating to 192.168.15.1:22 as 'root' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ssh-ed25519 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-ed25519 SHA256:mgdPsDTawfYlA/PuGzlfSuJil255P3fLs/f45mPnI5M
The authenticity of host '192.168.15.1 (192.168.15.1)' can't be established.
ED25519 key fingerprint is SHA256:mgdPsDTawfYlA/PuGzlfSuJil255P3fLs/f45mPnI5M.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.15.1' (ED25519) to the list of known hosts.
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: RSA SHA256:WmhnYylwxt3O7GekKQOfLxjSkFvu/UtmrCDFs3v061w agent
debug1: Will attempt key: /Users/slayer/.ssh/id_rsa RSA SHA256:og568IeOfn3zTs9obLafOAGT+XSBv+jmnx6j8bJcmrI
debug1: Will attempt key: /Users/slayer/.ssh/id_dsa
debug1: Will attempt key: /Users/slayer/.ssh/id_ecdsa
debug1: Will attempt key: /Users/slayer/.ssh/id_ed25519
debug1: Will attempt key: /Users/slayer/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,rsa-sha2-256,ssh-rsa>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
root@192.168.15.1: Permission denied (publickey).