table of contents
MRSH(1) | General Commands Manual | MRSH(1) |
NAME¶
mrsh
— munge
authenticated remote shell
SYNOPSIS¶
mrsh |
[-dn ] [-l
username] host [command] |
mrsh |
-V |
DESCRIPTION¶
Mrsh
is a modification of the
rsh
command that uses munge authentication instead
of reserved ports for security. Just like rsh,
mrsh
executes command on
host.
Mrsh
copies its standard input to the
remote command, the standard output of the remote command to its standard
output, and the standard error of the remote command to its standard error.
Interrupt, quit and terminate signals are propagated to the remote command;
mrsh
normally terminates when the remote command
does. The options are as follows:
-d
- The
-d
option turns on socket debugging (using setsockopt(2)) on the TCP sockets used for communication with the remote host. -l
- By default, the remote username is the same as the local username. The
-l
option allows the remote name to be specified. -n
- The
-n
option redirects input from the special device /dev/null (see the BUGS section of this manual page). -M
- The
-M
option allows an alternate munge unix domain path to be specified. -P
- The
-P
option allows an alternate service port to be specified. -V
- The
-V
option outputs the package and protocol version.
If no command is specified, you will be logged in on the remote host using mrlogin(1).
Shell metacharacters which are not quoted are interpreted on local machine, while quoted metacharacters are interpreted on the remote machine. For example, the command
mrsh otherhost cat remotefile
>> localfile
appends the remote file remotefile to the local file localfile, while
mrsh otherhost cat remotefile
">>" other_remotefile
appends remotefile to other_remotefile.
SEE ALSO¶
BUGS¶
If you are using csh(1) and put a
mrsh
in the background without redirecting its input
away from the terminal, it will block even if no reads are posted by the
remote command. If no input is desired you should redirect the input of
mrsh
to /dev/null using the
-n
option.
You cannot run an interactive command (like
rogue(6) or vi(1)) using
mrsh
; use mrlogin(1) instead.
Stop signals stop the local mrsh
process
only; this is arguably wrong, but currently hard to fix for reasons too
complicated to explain here.
August 26, 2003 | Linux Mrsh |