- 0
- 0
- 约1.54万字
- 约 8页
- 2023-04-24 发布于上海
- 举报
Disclaimer :
Disclaimer : The original version of this article was first published on IBM developerWorks, and is property of Westtech Information Services. This document is an updated version of the original article, and contains various improvements made by the Gentoo Linux Documentation team.
This document is not actively maintained.
OpenSSH key management, Part 2
Content:
Introducing ssh-agent and keychain Introducing ssh-agent
ssh-agent, included with the OpenSSH distribution, is a special program designed to make dealing with RSA and DSA keys both pleasant and secure (see Part 1 of this series for an introduction to RSA and DSA authentication.) ssh-agent, unlike ssh, is a long-running daemon designed for the sole purpose of caching your decrypted private keys.
ssh includes built-in support that allows it to communicate with ssh-agent, allowing ssh to acquire your decrypted private keys without prompting you for a password for every single new connection. With ssh-agent you simply use ssh-add to add your private keys to ssh-agents cache. Its a one-time process; after using ssh-add, ssh will grab your private key from
ssh-agent, rather than bugging you by prompting for a passphrase. Using ssh-agent
Lets take a look at how this whole ssh-agent key caching system works. When ssh-agent starts up, it spits out a few important environment variables before detaching from the shell and continuing to run in the background. Heres some example output generated by ssh-agent when it begins:
Code Listing 1.1: Running ssh-agent daemon
Code Listing 1.1: Running ssh-agent daemon
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-XX4LkMJS/agent.26916; export SSH_AUTH_SOCK; SSH_AGENT_PID=26917; export SSH_AGENT_PID;
echo Agent pid 26917;
As you can see, ssh-agents output is actually a series of bash commands; if executed, these commands would set a couple of environment variables, SSH_AUTH_SOCK and SSH_AGENT_PID. Due to the included export commands, these environment variables would be made avai
您可能关注的文档
- 06092工作分析八套试卷 答案.docx
- 10000汉字起笔部首表.docx
- 11000地形测量技术设计.docx
- 20000字起笔部首检字表.docx
- 20148小继教培训心得体会.docx
- 20151人教版三年级数学上册教学工作总结.docx
- 20165理论题分析和总结.docx
- 20192广东公需课 中华传统美德.docx
- 22018年黄浦区中考物理二模卷含答案.docx
- 070602EditPlus安装步骤分析和总结.docx
- 中国国家标准 GB/Z 37551.300-2026海洋能 波浪能、潮流能及其他水流能转换装置 第300部分:河流能转换装置发电性能评估.pdf
- GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 中国国家标准 GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 《GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法》.pdf
- 中国国家标准 GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- 《GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义》.pdf
- 中国国家标准 GB/T 4937.37-2025半导体器件 机械和气候试验方法 第37部分:采用加速度计的板级跌落试验方法.pdf
- 《GB/T 4937.10-2025半导体器件 机械和气候试验方法 第10部分:机械冲击 器件和组件》.pdf
- 中国国家标准 GB/T 44937.2-2025集成电路 电磁发射测量 第2部分:辐射发射测量TEM小室和宽带TEM小室法.pdf
最近下载
- 新人教版九年级上册初中化学全册重点习题课件.pptx VIP
- 2025年全国《考评员》专业技能鉴定考试题库与答案.docx VIP
- 招商定位—2018九江铜锣湾广场总体发展思路与招商汇报方案.pptx VIP
- 新冀教版九年级下册初中数全册教学课件.ppt VIP
- (高清版)B-T 23331-2020 能源管理体系 要求及使用指南.pdf VIP
- NB∕T 20596-2021 压水堆核电厂控制区墙体孔洞辐射防护封堵准则.pdf
- 轧制与退火工艺对铜铝复合板结合性能的多维度解析.docx VIP
- geogebra入门_简体中文新.pdf VIP
- 便携式无人机探测和反制系统编制说明.docx VIP
- 保障农民工工资支付条例(2020版)培训解读课件.pptx VIP
原创力文档

文档评论(0)