我是Debian/稳定器的快乐用户。从我正在运行的gnome会话中,我可以完成所有ssh操作(例如。没有进入我的ssh密码。
然而,每当我试图对我的运行箱进行ssh操作时,它就停止工作。如何设置我的ssh会话来使用运行中的gnome-keyring作为ssh代理?
$ ssh localhost
$ git remote update
Enter passphrase for key '/home/user/.ssh/acme_id_rsa': 下列解决办法对我无效:
上游文档没有列出这种情况:
我也试过:
$ ssh localhost
$ ssh-add
Could not open a connection to your authentication agent.我试着听从以下建议:
所以我做了:
$ sudo apt-get install keychain
$ cat .zprofile
eval `keychain --eval --agents ssh acme_id_rsa`但是,当从ssh会话连接时,它仍然请求我的密码:
$ ssh localhost
[...]
* keychain 2.8.5 ~ http://www.funtoo.org
* Found existing ssh-agent: 19438
* Adding 1 ssh key(s): /home/user/.ssh/acme_id_rsa
Enter passphrase for /home/user/.ssh/acme_id_rsa: 发布于 2021-04-30 09:18:18
本文列出了一个简单的解决方案(由Stephen Kitt重复):
为我工作。所以至少症状对我来说是固定的。但从技术上讲,我并不是在重复使用gnome键环,所以原来的问题仍然存在。
如果这对其他人有帮助,我现在可以从我的Win10膝上型计算机上使用:
$ ssh -A linux_server可以保存为:
$ cat .ssh/config
Host linux_server
ForwardAgent yeshttps://unix.stackexchange.com/questions/647407
复制相似问题