You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Debian从Bullseye升级到Bookworm后SSH登录报Permission denied错误无法登录

Debian从Bullseye升级到Bookworm后SSH登录报Permission denied错误无法登录

我在把Debian服务器从Bullseye升级到Bookworm之后,没办法通过SSH登录了。我已经试了好几种排查方法,但问题还是没解决。

错误信息

Last login: Wed Apr 10 13:42:16 2024 from 192.168.x.x
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
/usr/bin/sh: Permission denied

已尝试的排查步骤

  • 彻底卸载了sshd,重新安装了openssh-server
  • 将sshd_config配置文件清空,只使用默认配置
  • 尝试在本地用ssh user@localhost登录服务器,还是遇到同样的错误
  • 尝试切换不同的默认shell(比如/usr/bin/bash),但还是收到类似的Permission denied错误
  • 尝试用不同的用户登录...

备注:内容来源于stack exchange,提问作者Gush

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 10:14:29