do not write sessions ssh-agent to default-agent
This commit is contained in:
parent
c4028cb44a
commit
2e11b78960
1 changed files with 5 additions and 5 deletions
|
@ -146,8 +146,8 @@ export -f reachable-default
|
||||||
|
|
||||||
[ -z "${SSH_AGENTS_DEFAULT_DIR+x}" ] || mkdir -p "${SSH_AGENTS_DEFAULT_DIR}"
|
[ -z "${SSH_AGENTS_DEFAULT_DIR+x}" ] || mkdir -p "${SSH_AGENTS_DEFAULT_DIR}"
|
||||||
|
|
||||||
cat << EOF > "${SSH_AGENTS_DEFAULT_DIR}/agent-default-$(hostname)"
|
#cat << EOF > "${SSH_AGENTS_DEFAULT_DIR}/agent-default-$(hostname)"
|
||||||
SSH_AUTH_SOCK=${SSH_AUTH_SOCK}; export SSH_AUTH_SOCK;
|
#SSH_AUTH_SOCK=${SSH_AUTH_SOCK}; export SSH_AUTH_SOCK;
|
||||||
SSH_AGENT_PID=${SSH_AGENT_PID}; export SSH_AGENT_PID;
|
#SSH_AGENT_PID=${SSH_AGENT_PID}; export SSH_AGENT_PID;
|
||||||
loginfo Agent pid ${SSH_AGENT_PID};
|
#loginfo Agent pid ${SSH_AGENT_PID};
|
||||||
EOF
|
#EOF
|
||||||
|
|
Loading…
Reference in a new issue