Variable: tramp-restricted-shell-hosts-alist
tramp-restricted-shell-hosts-alist is a customizable variable defined
in tramp.el.gz.
Value
nil
Documentation
List of hosts, which run a restricted shell.
This is a list of regular expressions, which denote hosts running
a restricted shell like "rbash". Those hosts can be used as
proxies only, see tramp-default-proxies-alist. If the local
host runs a restricted shell, it shall be added to this list, too.
This variable was added, or its default value changed, in Emacs 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;; For some obscure technical reasons, `system-name' on w32 returns
;; either lower case or upper case letters. See
;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38079#20>.
(defcustom tramp-restricted-shell-hosts-alist
(when (and (eq system-type 'windows-nt)
(not (string-match-p (rx "sh" eol) tramp-encoding-shell)))
(list (tramp-compat-rx
bos (| (literal (downcase tramp-system-name))
(literal (upcase tramp-system-name)))
eos)))
"List of hosts, which run a restricted shell.
This is a list of regular expressions, which denote hosts running
a restricted shell like \"rbash\". Those hosts can be used as
proxies only, see `tramp-default-proxies-alist'. If the local
host runs a restricted shell, it shall be added to this list, too."
:version "27.1"
:type '(repeat (regexp :tag "Host regexp")))