NAME
	  rlogin - Connects the	local host with	a remote host

     SYNOPSIS
	  rlogin [-8] [-echaracter] [-luser] remote_host


	  The remote login command (rlogin) logs into remote_host and
	  connects your	local terminal to the remote host.

     FLAGS
	  -8  Allows an	8-bit data path	at all times.  Otherwise,
	      unless the Stop and Continue key sequences on the	remote
	      host are not standard, rlogin uses a 7-bit data path and
	      the eighth (high)	bit of each byte is stripped.

	  -echaracter
	      Changes the Escape character.  Substitute	the character
	      you choose for character.

	  -l user
	      Changes the remote username to the one you specify.
	      Otherwise, your local username is	used at	the remote
	      host.


     DESCRIPTION
	  The remote terminal type is the same as that given in	the
	  local	TERM environment variable.  The	terminal or window
	  size is also the same, if the	remote host supports them, and
	  any changes in size are transferred.	All echoing takes
	  place	at the remote host, so except for delays, the terminal
	  connection is	transparent.  Pressing the Stop	and Continue
	  key sequences	stops and starts the flow of information, and
	  the input and	output buffers are flushed on Interrupts.  The
	  rlogin command can only be used to connect to	systems	that
	  are running the rlogind daemon.  The telnet command can be
	  used on other	host systems.

	  If you do not	specify	the -l flag, the local username	is
	  used at the remote host.  If -l user is specified, the user-
	  name entered is used at the remote host.  In either case,
	  the remote host allows access	only if	one or both of the
	  following conditions is satisfied:


	    o  The local host is included in the remote	host's
	       /etc/hosts.equiv	file, the local	user is	not the
	       superuser, and the -l user flag is not specified.

	    o  The local host and username is included in a
	       $HOME/.rhosts file in the home directory	of the remote
	       user account.


	  If neither of	these conditions is met	and a password is
	  defined for the remote user account, the remote host prompts
	  for a	password.  The remote password file is checked to ver-
	  ify the password entered, and	the login prompt is displayed
	  if the password is not correct.  Pressing the	End-of-File
	  key sequence at the login prompt ends	the remote login
	  attempt.

	  For security reasons,	any $HOME/.rhosts file must be owned
	  by either the	remote user or the root	user and should	allow
	  write	access only by the owner.

	  In addition to the preceding conditions, rlogin also allows
	  access to the	remote host if the remote user account does
	  not have a password defined.	However, for security reasons,
	  use of a password on all user	accounts is recommended.

	  The /etc/hosts.equiv file provides host equivalence. That
	  is, if a local host is listed	in /etc/hosts.equiv on the
	  remote host, then a user on the local	host can log into the
	  remote host without specifying a password, as	long as	that
	  user has an account with the same username on	both hosts.
	  Note that this feature does not allow	a local	root to	log
	  into a remote	system as root without specifying a password
	  unless root on the remote system has not been	assigned a
	  password.

	  The $HOME/.rhosts file provides account equivalence. That
	  is, if a local host and local	username are listed in
	  $HOME/.rhosts	on the remote host, then the local user	can
	  log into the remote host as the as the remote	user (using
	  the -l flag) without specifying a password.  Note that this
	  feature does not allow a local user to log into a remote
	  system as root without specifying a password unless root on
	  the remote system has	not been assigned a password.

	  Unless otherwise modified by the -e flag, the	standard
	  Escape character for disconnecting from the remote host is a
	  ~ (tilde).  The Escape character is only recognized by the
	  remote host if it occurs at the beginning of a line.	Other-
	  wise,	the Escape character is	sent to	the remote host	as a
	  normal character.  To	send the Escape	character to the
	  remote host as a normal character at the beginning of	a
	  line,	press the Escape character twice.  Pressing the	Escape
	  character and	a . (dot) (for example,	~.) immediately
	  disconnects the local	terminal from the remote host.

     EXAMPLES
	  In the following examples, the local host is listed in the
	  /etc/hosts.equiv file	at the remote host.


	   1.  To log in to a remote host with your local username,
	       enter:

	       $ rlogin	host2
	       Password: <Enter	password>



	       To log out from the remote host and close the connec-
	       tion, enter the End-of-File key sequence.

	   2.  To log in to a remote host with a different username,
	       enter:

	       $ rlogin	host2 -l dale



	       You are prompted	to enter your password and then	are
	       logged in to the	remote host host2 with the username
	       dale.

	   3.  To log in to host2 with the your	local username and
	       change the Escape character to a	\ (backslash), enter:

	       $ rlogin	host2 -e\



     FILES
	  /etc/hosts.equiv
		     Specifies remote hosts from which users can exe-
		     cute commands on the local	host (provided these
		     users have	an account on the local	host).

	  $HOME/.rhosts
		     Specifies remote users who	can use	a local	user
		     account.


     RELATED INFORMATION
	  Commands:  rcp(1), rsh(1), rlogind(8), telnet(1).

	  Files:  rhosts(4).





Acknowledgement and Disclaimer