ssh-agent如何设置和使用SSH_AUTH_SOCK? [英] How is SSH_AUTH_SOCK setup and used by ssh-agent?

查看:1230
本文介绍了ssh-agent如何设置和使用SSH_AUTH_SOCK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读 https://superuser.com/之后,我已经能够设置ssh-agent的共享以进行公钥身份验证a/230872/301446

这样生成的环境文件具有以下内容:

The environment file thus generated has the following contents:

SSH_AUTH_SOCK=/tmp/ssh-OwqeSuxmEsQN/agent.4744; export SSH_AUTH_SOCK;
SSH_AGENT_PID=8960; export SSH_AGENT_PID;
#echo Agent pid 8960;

agent.4744具有:

!<socket >24194 s 07DF88C6-E9997283-4C471010-2FE57D77

您知道ssh-agent如何使用此套接字吗?我可以理解ssh-agent使用它共享身份验证信息,但具体如何呢?

Would you know how this socket is used by ssh-agent? I can understand that it's used by ssh-agent to share authentication information but exactly how?

推荐答案

来自此处:

$ SSH_AUTH_SOCK包含unix文件套接字的路径, 代理用于与其他进程进行通信.这是必不可少的 用于ssh-add.

$SSH_AUTH_SOCK contains the path of the unix file socket that the agent uses for communication with other processes. This is essential for ssh-add.

这篇关于ssh-agent如何设置和使用SSH_AUTH_SOCK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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