remsh(1N) remsh(1N)NAME remsh - remote shell SYNOPSIS remsh rhost [-l username] [-n] [command] DESCRIPTION remsh connects to a specified remote host, rhost, and exe- cutes a specified remote command (command) via a local net- work. On the remote side, you get whatever shell is set up for that account. remsh 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 ter- minate signals are propagated to the remote command; remsh normally terminates when the remote command does. The remote user name used is the same as your local user name, unless you specify a different remote name with the -l flag option. The remote account must have its rhosts file set up to grant you permission to log in without prompting you for the password; no provision is made for specifying a password with a command. If you omit command, then instead of executing a single com- mand, you are logged in on the remote host using rlogin(1N). If you stipulate the -n flag option, the standard input is redirected to /dev/null. Shell metacharacters that are not quoted are interpreted on the local machine while quoted metacharacters are interpret- ed on the remote machine. Thus the command remsh rhost cat remotefile >> localfile appends the remote file remotefile to the local file local- file, while remsh rhost cat remotefile ">>" remotefile.2 appends remotefile to remotefile.2. Host names are given in the file /etc/hosts. Each host has one standard name (the first name given in the file), which is rather long and unambiguous, and optionally one or more nicknames. The rhost names for local machines may also be commands in the directory /usr/hosts; these names must be linked to the remsh binaries. If you put this directory in your search path, then the remsh may be omitted, as in the second form of the command, above. April, 1990 1
remsh(1N) remsh(1N)Using remsh, you cannot run an interactive command (like vi(1)); instead, use rlogin(1N). FILES /usr/bin/remsh /etc/hosts /usr/hosts/* SEE ALSO rlogin(1N), telnet(1N). 2 April, 1990