Add a symlink for SSH_AUTH_SOCK remotely.

This commit is contained in:
David Tomaschik
2019-06-07 10:42:10 -07:00
parent b1799197fe
commit a5dc656656

7
dotfiles/ssh/rc Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
REMOTE_LINK="${HOME}/.ssh/remote_agent.sock"
if test \! -L "${REMOTE_LINK}" -a -n "${SSH_AUTH_SOCK}" ; then
ln -sf "${SSH_AUTH_SOCK}" "${REMOTE_LINK}"
fi