gnome-keyring-daemon[16231]: 证书中不支持的密钥算法:1.2.840.10045.2.1

gnome-keyring-daemon[16231]: 证书中不支持的密钥算法:1.2.840.10045.2.1

好吧……当我尝试通过 ssh 进入托管服务的 shell 帐户时,我无法登录。问题似乎是 Gnome Keyring 服务没有支持的密钥算法,但我不知道如何解决这个问题,我浪费了太多时间在 Google 上寻找答案,但似乎没有人能找到答案。一个网站说安装 libpam-unix2 包应该可以解决这个问题,但对我来说什么也没解决。

希望这里有人知道。以下是正在发生的事情(我使用的是 Ubuntu 12.04)...

$ rm -R .ssh
$ ssh -v ###.###.###.###
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ###.###.###.### [###.###.###.###] port 22.
debug1: Connection established.
debug1: SELinux support disabled
debug1: identity file /home/forrest/.ssh/id_rsa type -1
debug1: identity file /home/forrest/.ssh/id_rsa-cert type -1
debug1: identity file /home/forrest/.ssh/id_dsa type -1
debug1: identity file /home/forrest/.ssh/id_dsa-cert type -1
debug1: identity file /home/forrest/.ssh/id_ecdsa type -1
debug1: identity file /home/forrest/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA f4:a8:f7:88:56:bd:6e:87:73:3d:45:12:8d:c2:eb:c0
The authenticity of host '###.###.###.### (###.###.###.###)' can't be established.
RSA key fingerprint is f4:a8:f7:88:56:bd:6e:87:73:3d:45:12:8d:c2:eb:c0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '###.###.###.###' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/forrest/.ssh/id_rsa
debug1: Trying private key: /home/forrest/.ssh/id_dsa
debug1: Trying private key: /home/forrest/.ssh/id_ecdsa
debug1: Next authentication method: password
forrest@###.###.###.###'s password: 
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
forrest@###.###.###.###'s password: 
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
forrest@###.###.###.###'s password: 
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
Permission denied (publickey,password).

相关部分内容/var/logs/auth.log如下:

Aug 11 09:01:17 pompano gnome-keyring-daemon[16231]: unsupported key algorithm in certificate: 1.2.840.10045.2.1
Aug 11 09:02:33  gnome-keyring-daemon[16231]: last message repeated 4 times

那么显然 gnome 密钥环不再支持 SSH 的密钥算法了?嗯?

答案1

John S Gruber 的帖子应该会有所帮助。请执行以下操作:

env | grep SSH_AUTH_SOCK

检查变量的值以查看该文件是否存在。 如果存在:

unset SSH_AUTH_SOCK

这应该会删除套接字文件;如果没有,您可能需要手动删除它(作为 sudo)。

相关内容