小编har*_*amc的帖子

错误“权限被拒绝(公钥,密码)”

我正在尝试从终端通过 SSH 连接到本地 IP 地址。命令是

ssh -v user@192.168.0.2
Run Code Online (Sandbox Code Playgroud)

但它没有连接。它不断给我错误

“权限被拒绝(公钥,密码)。”

我一直在寻找年龄,只是找不到问题所在。我可以通过Windows上的PuTTY使用相同的方法进行连接,也可以通过FileZilla进行连接

完整输出:

OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to 192.168.0.2 [192.168.0.2] port 22.
debug1: Connection established.
debug1: identity file /Users/[UserName]/.ssh/id_rsa type 1
debug1: identity file /Users/UserName/.ssh/id_rsa-cert type -1
debug1: identity file /Users/UserName/.ssh/id_dsa type -1
debug1: identity file /Users/UserName/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string …
Run Code Online (Sandbox Code Playgroud)

ssh openssh remote-access rsa public-key

7
推荐指数
2
解决办法
11万
查看次数

标签 统计

openssh ×1

public-key ×1

remote-access ×1

rsa ×1

ssh ×1