我希望能够让一组用户使用公钥身份验证进行身份验证,而其他用户使用密码身份验证。
这在 Linux 上的 OpenSSH 中可能吗?如果是这样,我该怎么做?
看完之后/etc/ssh/sshd_config
,似乎我仅限于启用密钥身份验证或使用 PAM。
我无法在我的 macbook 上使用我的用户通过 ssh 连接到我的数据中心节点之一。这是最近出现的问题,从几周前开始就非常有用了。
奇怪的是,这只会影响我计算机上的用户,但我能够从以下位置建立连接:
在我的计算机上使用我的用户名和相同的密钥,我可以:
我对这个错误感到很困惑。你能帮我定位问题吗?
查看日志,与网关的连接已建立,但无法连接到节点。在客户端:
? ~ ? ssh -v -J gatekeeper@gateway ubuntu@node -i ~/.ssh/id_rsa
OpenSSH_7.3p1, LibreSSL 2.4.1
[...]
debug1: Authentication succeeded (publickey).
Authenticated to gateway ([35.156.248.245]:22).
debug1: channel_connect_stdio_fwd node:22
debug1: channel 0: new [stdio-forward]
debug1: getpeername failed: Bad file descriptor
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com …
Run Code Online (Sandbox Code Playgroud)