Configure tramp for sudo over ssh
This commit is contained in:
parent
d9f3bbc66e
commit
a6fb3b0a19
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,4 +8,5 @@ projectile-bookmarks.eld
|
|||||||
projectile.cache
|
projectile.cache
|
||||||
semanticdb
|
semanticdb
|
||||||
ede-projects.el
|
ede-projects.el
|
||||||
|
tramp
|
||||||
*~
|
*~
|
||||||
|
@ -175,6 +175,15 @@
|
|||||||
(add-hook 'prog-mode-hook 'goto-address-mode)
|
(add-hook 'prog-mode-hook 'goto-address-mode)
|
||||||
(add-hook 'text-mode-hook 'goto-address-mode)
|
(add-hook 'text-mode-hook 'goto-address-mode)
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; Tramp configuration.
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(use-package tramp
|
||||||
|
:defer t
|
||||||
|
:config
|
||||||
|
(add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" "/ssh:%h:")))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Configure garbage collection.
|
;; Configure garbage collection.
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user