Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web可登录,ssh无法连接 #982

Closed
1 task done
zlopen opened this issue Jun 19, 2023 · 1 comment
Closed
1 task done

web可登录,ssh无法连接 #982

zlopen opened this issue Jun 19, 2023 · 1 comment
Labels
ImmortalWrt 23.05 pull request/issue targeted (also) for ImmortalWrt 23.05 release question Further information is requested

Comments

@zlopen
Copy link

zlopen commented Jun 19, 2023

Describe the bug

luci web界面可以登录上
ssh时luci上能看到日志
Mon Jun 19 23:20:19 2023 authpriv.info dropbear[14214]: Child connection from 192.168.100.169:10100
Mon Jun 19 23:20:19 2023 authpriv.warn dropbear[14214]: User 'root' has invalid shell, rejected
Mon Jun 19 23:20:25 2023 authpriv.info dropbear[14214]: Exit before auth from <192.168.100.169:10100>: (user 'root', 1 fails): Error reading: Connection reset by peer
如果通过luci-app-command能看到一些信息

'cat' '/etc/passwd'

root:x:0:0:root:/root:/bin/bash
...

'find' / '-name' 'bash'

/bin/bash
...

'ls' '/dev/tty*'

ls: /dev/tty*: No such file or directory

ssh登录不上,情况如下
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
debug3: failed to open file:C:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
root@192.168.100.1's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
debug3: failed to open file:C:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
root@192.168.100.1's password:

ImmortalWrt version

r0-ffd175e

ImmortalWrt target/subtarget

ipq807x/generic

Device

Xiaomi AX3600 (stock layout)

Image kind

Official downloaded image

Steps to reproduce

分支地址
https://github.com/immortalwrt/immortalwrt/tree/openwrt-23.05
编译刷机

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig

No response

Terms

  • I am reporting an issue for ImmortalWrt, not an unsupported fork.
@zlopen zlopen added the bug issue report with a confirmed bug label Jun 19, 2023
@1715173329 1715173329 added question Further information is requested and removed bug issue report with a confirmed bug labels Jun 19, 2023
@1715173329
Copy link
Member

你的编译环境或固件有问题,bash 不能正常工作。
可以自行修改 passwd 文件把 shell 改成 /bin/ash,但建议重刷固件。

@1715173329 1715173329 added the ImmortalWrt 23.05 pull request/issue targeted (also) for ImmortalWrt 23.05 release label Jun 19, 2023
@immortalwrt immortalwrt locked and limited conversation to collaborators Jun 20, 2023
@1715173329 1715173329 converted this issue into discussion #985 Jun 20, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
ImmortalWrt 23.05 pull request/issue targeted (also) for ImmortalWrt 23.05 release question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants