Variable: tramp-default-method-alist

tramp-default-method-alist is a customizable variable defined in tramp.el.gz.

Value

((nil "\\`\\(?:anonymous\\|ftp\\)\\'" "ftp") ("\\`ftp\\." nil "ftp")
 ("\\`\\(?:0eec510c8142\\|\\(?:127\\.0\\.0\\.1\\|::1\\|ip\\(?:6-lo\\(?:calhost\\|opback\\)\\|v6-lo\\(?:calhost\\|opback\\)\\)\\|localhost[46]?\\)\\)\\'"
  "\\`root\\'" "su"))

Documentation

Default method to use for specific host/user pairs.

This is an alist of items (HOST USER METHOD). The first matching item specifies the method to use for a file name which does not specify a method. HOST and USER are regular expressions or nil, which is interpreted as a regular expression which always matches. If no entry matches, the variable tramp-default-method takes effect.

If the file name does not specify the user, lookup is done using the empty string for the user name.

See tramp-methods for a list of possibilities for METHOD.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;;;###tramp-autoload
(defcustom tramp-default-method-alist nil
  ;; FIXME: This is not an "alist", because its elements are not of
  ;; the form (KEY . VAL) but (KEY1 KEY2 VAL).
  "Default method to use for specific host/user pairs.
This is an alist of items (HOST USER METHOD).  The first matching item
specifies the method to use for a file name which does not specify a
method.  HOST and USER are regular expressions or nil, which is
interpreted as a regular expression which always matches.  If no entry
matches, the variable `tramp-default-method' takes effect.

If the file name does not specify the user, lookup is done using the
empty string for the user name.

See `tramp-methods' for a list of possibilities for METHOD."
  :type '(repeat (list (choice :tag "Host regexp" regexp sexp)
		       (choice :tag "User regexp" regexp sexp)
		       (choice :tag "Method name" string (const nil))))
  :link '(info-link :tag "Tramp manual" "(tramp) Default Method"))