How to use remote shell (rsh)

Source: Internet
Author: User
The rsh command is short for remote shell. This command starts a shell on the specified remote host and executes the command specified by the user in the rsh command line. If the user does not provide the command to be executed, RSH uses the rlogin command to log on to the remote machine. The general format of the rsh command is: RSH [-kdnx] [-K realm] [-l username] host [command]. The common format is: rsh host [command] command can be any Linux Command from the shell prompt. The meaning of each option in the rsh command is as follows:-K closes all the o validation. This option is used only when it is connected to the host confirmed by using the o. -D open the socket debugging of TCP sockets that communicates with the remote host. For more information, see the online help of setsockopt. -K requests rsh to obtain the Kerberos permission for the remote host in the specified region, instead of obtaining the Kerberos permission for the remote host in the remote host region determined by krb_relmofhost (3. -L by default, the remote user name is the same as the local user name. This option allows you to specify a remote user name. If you specify a remote user name, use Kerberos to confirm, as in the rlogin command. -N redirects the input from the special device/dev/null. -X enables DES encryption for all transmitted data. This affects response time and CPU utilization, but improves security. Linux puts the standard input into the rsh command and copies it to the standard input of the command to be remotely executed. It copies the standard output of remote commands to the standard output of RSH. It also copies remote standard errors to the local standard error file. All exit, stop, and interrupt signals are sent to remote commands. When the remote command is terminated, RSH is terminated.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.