![]() |
![]() |
![]() |
![]() |
Remote shell
rsh [-dn] [-l username] host [command]
The rsh utility executes command on host. The standard input of rsh is copied to the remote command, and the standard output and standard error of the remote command are copied to rsh's standard output and standard error. Interrupt, quit, and terminate signals are propagated to the remote command; rsh normally terminates when the remote command does.
If you don't specify a command, you'll be logged in on the remote host via rlogin.
Shell metacharacters that aren't quoted are interpreted on the local machine; quoted metacharacters are interpreted on the remote machine. For example, this command appends remotefile to localfile:
rsh otherhost cat remotefile >> localfile
while, this command appends remotefile to other_remotefile:
rsh otherhost cat remotefile ">>" other_remotefile
You can't use rsh to run an interactive command such as vi; use rlogin instead.
/etc/hosts.equiv, ~/.rhosts files
![]() |
![]() |
![]() |
![]() |