Function: rsh
rsh is an autoloaded, interactive and byte-compiled function defined
in telnet.el.gz.
Signature
(rsh HOST)
Documentation
Open a network login connection to host named HOST (a string).
Communication with HOST is recorded in a buffer *rsh-HOST*.
Normally input is edited in Emacs and sent a line at a time.
Probably introduced at or before Emacs version 19.29.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/telnet.el.gz
;;;###autoload
(defun rsh (host)
"Open a network login connection to host named HOST (a string).
Communication with HOST is recorded in a buffer `*rsh-HOST*'.
Normally input is edited in Emacs and sent a line at a time."
(interactive "sOpen rsh connection to host: ")
(require 'shell)
(let ((name (concat "rsh-" host )))
(switch-to-buffer (make-comint name remote-shell-program nil host))
(set-process-filter (get-process name) #'telnet-initial-filter)
(telnet-mode)
(setq-local telnet-connect-command (list 'rsh host))
(setq telnet-count -16)))