From d16f4df11a799ae990c07629f60a11d5ad8d22ba Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 3 Feb 2016 19:34:37 +0100 Subject: Emacs: Set SSH_AUTH_SOCK --- tag-emacs/emacs.d/init.org | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 0451fe79..2536223a 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -680,6 +680,8 @@ that I can sudo on remote machines (use-package tramp :defer 7 :config (progn + (unless (getenv "SSH_AUTH_SOCK") + (setenv "SSH_AUTH_SOCK" "/run/user/1000/ssh-agent.socket")) (setq tramp-default-method (if (eq system-type 'windows-nt) "plinkx" "ssh") tramp-default-user-alist '(("\\`su\\(do\\)?\\'" nil "root")) tramp-backup-directory-alist backup-directory-alist -- cgit 1.4.1