Prefer .ssh/config instead of Tramp's defaults

Instruct Tramp to use my SSH settings in .ssh/config.
This commit is contained in:
William Carroll 2020-09-08 13:12:17 +01:00
parent 74f1359924
commit 34af54eb04

View file

@ -37,6 +37,11 @@
;; Maximizes the tramp debugging noisiness while I'm still learning about tramp. ;; Maximizes the tramp debugging noisiness while I'm still learning about tramp.
(setq tramp-verbose 10) (setq tramp-verbose 10)
;; As confusing as this may seem, this forces Tramp to use *my* .ssh/config
;; options, which enable ControlMaster. In other words, disabling this actually
;; enables ControlMaster.
(setq tramp-use-ssh-controlmaster-options nil)
(defcustom ssh-hosts '("desktop" "socrates") (defcustom ssh-hosts '("desktop" "socrates")
"List of hosts to which I commonly connect. "List of hosts to which I commonly connect.
Note: It could be interesting to read these values from ~/.ssh-config, but Note: It could be interesting to read these values from ~/.ssh-config, but