权限被拒绝(公钥、键盘交互)

发布于 2024-08-07 10:08:55 字数 1459 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

只怪假的太真实 2024-08-14 10:08:55

您可能需要仔细检查authorized_keys 文件权限:

$ chmod 600 ~/.ssh/authorized_keys

较新的SSH 服务器版本在这方面非常挑剔。

You may want to double check the authorized_keys file permissions:

$ chmod 600 ~/.ssh/authorized_keys

Newer SSH server versions are very picky on this respect.

雨后咖啡店 2024-08-14 10:08:55

您需要更改远程服务器中的 sshd_config 文件(可能位于 /etc/ssh/sshd_config 中)。

更改

PasswordAuthentication no

PasswordAuthentication yes

然后重新启动 sshd 守护进程。

You need to change the sshd_config file in the remote server (probably in /etc/ssh/sshd_config).

Change

PasswordAuthentication no

to

PasswordAuthentication yes

And then restart the sshd daemon.

小帐篷 2024-08-14 10:08:55

服务器首先尝试通过公钥对您进行身份验证。这不起作用(我猜你还没有设置),所以它会退回到“键盘交互”。然后它应该要求您输入密码,这可能是您没有输入正确的密码。您看到密码提示了吗?

The server first tries to authenticate you by public key. That doesn't work (I guess you haven't set one up), so it then falls back to 'keyboard-interactive'. It should then ask you for a password, which presumably you're not getting right. Did you see a password prompt?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文