write SSH_AUTH_SOCK to default-agent for ssh-ident

This commit is contained in:
Jakobus Schürz 2020-09-20 20:22:48 +02:00
parent 9749a149aa
commit 6acc1c4563

View file

@ -128,3 +128,10 @@ export -f token
export -f sudo export -f sudo
export -f reachable export -f reachable
export -f reachable-default 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