如何将公钥永久添加到 ssh-agent [英] how add public key to ssh-agent permanently

查看:66
本文介绍了如何将公钥永久添加到 ssh-agent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将现有的公钥添加到 ssh-agent 但重新启动后我需要运行

I added my existed public key to ssh-agent but after restarting I need to run

ssh-add ~/.ssh/id_rsa

再次添加.有没有办法永久添加它?

to add it again. Is there a way to add it permanently?

推荐答案

你不能那样做.您需要一些安全的密码存储,而 ssh-agent 中没有.通过以明文形式存储密码,您基本上将安全性降级为无(您最好完全删除密码).

You can not do that. You would need some secure store for the passphrase and you don't have it in ssh-agent. By storing the passphrase in plaintext, you basically downgrade the security to none (and you would better do by removing the passphrase completely).

GNOME 中有一些应用程序存储使用帐户密码(gnome-keyringseahorse)安全加密的密码短语,但纯ssh-agent 不知道.

There are applications in GNOME that store the passphrase securely encrypted with the account password (gnome-keyring, seahorse), but pure ssh-agent does not know that.

这篇关于如何将公钥永久添加到 ssh-agent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆