Function: tramp-ssh-option-exists-p

tramp-ssh-option-exists-p is a byte-compiled function defined in tramp-sh.el.gz.

Signature

(tramp-ssh-option-exists-p VEC OPTION)

Documentation

Check, whether local ssh OPTION is applicable.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-ssh-option-exists-p (vec option)
  "Check, whether local ssh OPTION is applicable."
  ;; We don't want to cache it persistently.
  (with-tramp-connection-property nil option
    ;; "ssh -G" is introduced in OpenSSH 6.7.
    ;; We use a non-existing IP address for check, in order to avoid
    ;; useless connections, and DNS timeouts.
    (zerop
     (tramp-call-process vec "ssh" nil nil nil "-G" "-o" option "0.0.0.1"))))