]> git.madduck.net Git - etc/ssh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

maintain persistent ssh auth sock
authormartin f. krafft <madduck@madduck.net>
Fri, 17 Apr 2020 01:08:40 +0000 (03:08 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 17 Apr 2020 01:19:45 +0000 (03:19 +0200)
.gitignore.d/ssh
.ssh/rc [new file with mode: 0644]

index ab20bac59cc9c7ea8015b7495d0c9d45171312cb..05142ef61541937aa760730224f2f6319e0ef1e9 100644 (file)
@@ -29,6 +29,7 @@
 !/.ssh/known_hosts.d/tilde-club
 !/.ssh/known_hosts.d/viinet.de
 !/.ssh/Makefile
 !/.ssh/known_hosts.d/tilde-club
 !/.ssh/known_hosts.d/viinet.de
 !/.ssh/Makefile
+!/.ssh/rc
 !/.var/ssh/.gitignore
 !/.xsession.d/20-ssh-ask-passphrase
 !/.zsh/zshrc/parts.d/50-ssh
 !/.var/ssh/.gitignore
 !/.xsession.d/20-ssh-ask-passphrase
 !/.zsh/zshrc/parts.d/50-ssh
diff --git a/.ssh/rc b/.ssh/rc
new file mode 100644 (file)
index 0000000..a70d65c
--- /dev/null
+++ b/.ssh/rc
@@ -0,0 +1,5 @@
+PERSISTENT_AUTH_SOCK=$VARDIR/ssh/persistent-ssh-auth.sock
+
+if [ ! -S "$PERSISTENT_AUTH_SOCK" ] && [ -S "$SSH_AUTH_SOCK" ]; then
+  ln -sf "$SSH_AUTH_SOCK" "$PERSISTENT_AUTH_SOCK"
+fi