From 532a2330af8c5b20a533a2f05716e7f3814b1e3c Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 14 Feb 2021 12:58:50 +0100 Subject: [PATCH] Explicitly set TRAMP default method Using sshx as default on non-Windows systems seems to be a more robust choice than using ssh, because the latter might be prone to errors caused by my user-specific shell configuration. And while we are at it, using plink on Windows is more reasonable than using ssh, at least in my working environment. --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index f43ec89..0c7c9aa 100644 --- a/init.el +++ b/init.el @@ -559,7 +559,8 @@ browse-url-generic-program "firefox")) (use-package tramp - :init (setq tramp-save-ad-hoc-proxies t)) + :init (setq tramp-save-ad-hoc-proxies t + tramp-default-method (if on-windows "plink" "sshx"))) (use-package calc ;; https://florian.adamsky.it/2016/03/31/emacs-calc-for-programmers-and-cs.html