write SSH_AUTH_SOCK to default-agent for ssh-ident
This commit is contained in:
parent
9749a149aa
commit
6acc1c4563
1 changed files with 7 additions and 0 deletions
|
@ -128,3 +128,10 @@ export -f token
|
|||
export -f sudo
|
||||
export -f reachable
|
||||
export -f reachable-default
|
||||
|
||||
|
||||
cat << EOF > ~/.ssh/agents/agent-default-$(hostname)
|
||||
SSH_AUTH_SOCK=\${SSH_AUTH_SOCK}; export SSH_AUTH_SOCK;
|
||||
SSH_AGENT_PID=\${SSH_AGENT_PID}; export SSH_AGENT_PID;
|
||||
echo Agent pid \${SSH_AGENT_PID};
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue