小编fen*_*rbb的帖子

SSH 错误:未知密钥类型 '-----BEGIN'

我在使用授权密钥通过 SSH 登录远程服务器时遇到问题。我收到的错误消息如下所示:

OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to xx.xx.xx [xxx.xx.xx.xx] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /Users/bfenker/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
...
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /Users/bfenker/.ssh/id_rsa type 1
ssh_exchange_identification: Connection closed by remote host
Run Code Online (Sandbox Code Playgroud)

这个网站上的其他问题也贴了类似的问题,解决方法通常是仔细检查客户端的所有权限,我已经这样做了:

drwxr-xr-x+ 23 …
Run Code Online (Sandbox Code Playgroud)

ssh

8
推荐指数
2
解决办法
4万
查看次数

标签 统计

ssh ×1