Ubuntu 14.04 SSH bug for “Agent admitted failure to sign using the key”

本文介绍了一种常见问题:从Ubuntu桌面使用SSH密钥登录服务器失败。通过排查发现,gnome-keyring是导致此问题的原因之一。文章提供了一个简单的方法来验证这一故障,并给出了可能的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

For the past few weeks I’ve had problems logging into servers using my SSH keys from Ubuntu desktops. The following would happen each time:

[chris@work ~] sshserverAgentadmittedfailuretosignusingthekey.Permissiondenied(publickey).[chris@work ]
Oddly, this only happened from my Ubuntu desktop systems. My Ubuntu servers had no issue connecting.

After some digging, I found out that issues with the gnome-keyring were at fault. gnome-keyring doesn’t always handle specific formats of SSH keys correctly. Unfortunately, gnome-keyring was trying to handle all SSH key usage, preventing the keys from working.

If you are having this issue, you can confirm that gnome-keyring is at fault on your system by added SSH_AUTH_SOCK=0 in front of the ssh command as follows:

[chris@work ~]$ SSH_AUTH_SOCK=0 ssh server
Welcome to Ubuntu 14.10 (GNU/Linux 3.13.0-37-generic x86_64)

0 packages can be updated.
0 updates are security updates.

Last login: Wed Mar 11 11:49:50 2015 from host
[chris@work ~]$
If the connection works, then you likely have the same problem that I had. If the connection does not work, please read the Fixing other sources of agent failure section below for further ideas to fix your problem.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值