TakumiBC / R4S

基于 RubikWrt 的 NanoPi R4S 固件,每日自动更新插件和内核
GNU General Public License v2.0
32 stars 4 forks source link

无法SSH连接 #1

Closed Stillrainy closed 2 years ago

Stillrainy commented 3 years ago

使用SSH提示密码不正确 使用TTYD连接提示 login: can't execute '/usr/bin/zsh': No such file or directory

版本 thomaswcy build 2021.08.06 @ RubikWrt R21.7.26 (2021.08.06) / LuCI Master (git-21.211.30217-03784c3)

Stillrainy commented 3 years ago

OpenWrt-DIY中的问题类似

主机名 OpenWrt 主机型号 Xiaomi Redmi Router AC2100 架构 MediaTek MT7621 ver:1 eco:3 x 4 固件版本 OpenWrt R21.8.6 (2021-08-20) / LuCI Master (git-21.211.30217-03784c3) 内核版本 5.4.140 本地时间 Sun Aug 22 12:58:55 2021 使用 TTYD ,输入用户名密码后提示:login: can't execute '/usr/bin/zsh': No such file or directory

image

使用 ssh 远程登录,输入用户名密码,提示无权限。即使添加了密钥也是一样。

ssh root@192.168.10.1
root@192.168.10.1's password:
Permission denied, please try again.
root@192.168.10.1's password:
TakumiBC commented 3 years ago

重置一下固件应该就能解决了

TakumiBC commented 3 years ago

以前有人也有类似的问题

TakumiBC commented 3 years ago

不知道是怎么引起的

Stillrainy commented 3 years ago

重置一下固件应该就能解决了

不行,重置了也没解决。还分别刷写了squashfs和ext4分区的版本,都是一样的。

TakumiBC commented 3 years ago

Stable版?

在 2021年9月9日,上午8:54,Shuyuan Yang @.***> 写道:



重置一下固件应该就能解决了

不行,重置了也没解决。还分别刷写了squashfs和ext4分区的版本,都是一样的。

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/thomaswcy/R4S/issues/1#issuecomment-915675090, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZOUCUVXBOMEQNYDK5OSF3UBAAWBANCNFSM5DT4MBRQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Stillrainy commented 3 years ago

Stable版?

是的,最新08.06的stable版。

TakumiBC commented 3 years ago

我有空把库重置一下

TakumiBC commented 3 years ago

我搞得太垃圾了

TakumiBC commented 3 years ago

重置完毕。用最新固件试试。

Stillrainy commented 3 years ago

重置完毕。用最新固件试试。

问题并没有解决,仍然无法使用TTYD和SSH。看了下系统日志,有一条authpriv.warn dropbear[7418]: User 'root' has invalid shell, rejected,似乎是root用户指定的shell有问题。而且TTYD的提示也是找不到zsh,是不是固件里没有处理好shell?

另外就是,新版的固件中移除了Bypass,这个软件结合SmartDNS在我这里表现最好,希望能重新加入固件中,谢谢。

biliw commented 2 years ago

在软件包里搜zsh重新安装就可以了。

TakumiBC commented 2 years ago

重置完毕。用最新固件试试。

问题并没有解决,仍然无法使用TTYD和SSH。看了下系统日志,有一条authpriv.warn dropbear[7418]: User 'root' has invalid shell, rejected,似乎是root用户指定的shell有问题。而且TTYD的提示也是找不到zsh,是不是固件里没有处理好shell?

另外就是,新版的固件中移除了Bypass,这个软件结合SmartDNS在我这里表现最好,希望能重新加入固件中,谢谢。

我很快就好重构了,大家耐心点,我还在上学。

Stillrainy commented 2 years ago

在软件包里搜zsh重新安装就可以了。

👍