Variable: remote-shell-program

remote-shell-program is a customizable variable defined in files.el.gz.

Value

"/usr/bin/ssh"

Documentation

Program to use to execute commands on a remote host (i.e. ssh).

This variable was added, or its default value changed, in Emacs 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
;; Probably this entire variable should be obsolete now, in favor of
;; something Tramp-related (?).  It is not used in many places.
;; It's not clear what the best file for this to be in is, but given
;; it uses custom-initialize-delay, it is easier if it is preloaded
;; rather than autoloaded.
(defcustom remote-shell-program (or (executable-find "ssh") "ssh")
  "Program to use to execute commands on a remote host (i.e. ssh)."
  :version "29.1"
  :initialize 'custom-initialize-delay
  :group 'environment
  :type 'file)