2005-07-16 16:35:59 +04:00
|
|
|
.\" $NetBSD: rlogin.1,v 1.25 2005/07/16 12:35:59 rpaulo Exp $
|
1995-03-21 10:58:28 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1983, 1990, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
1993-03-21 12:45:37 +03:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2003-08-07 15:13:06 +04:00
|
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
1993-03-21 12:45:37 +03:00
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1997-01-09 09:57:45 +03:00
|
|
|
.\" @(#)rlogin.1 8.2 (Berkeley) 4/29/95
|
1993-03-21 12:45:37 +03:00
|
|
|
.\"
|
2005-07-16 16:35:59 +04:00
|
|
|
.Dd July 16, 2005
|
1993-03-21 12:45:37 +03:00
|
|
|
.Dt RLOGIN 1
|
1999-03-22 21:16:34 +03:00
|
|
|
.Os
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm rlogin
|
|
|
|
.Nd remote login
|
|
|
|
.Sh SYNOPSIS
|
1997-10-19 18:10:27 +04:00
|
|
|
.Nm
|
2005-07-16 16:35:59 +04:00
|
|
|
.Op Fl 468Ed
|
1993-03-21 12:45:37 +03:00
|
|
|
.Op Fl e Ar char
|
|
|
|
.Op Fl l Ar username
|
2003-04-07 05:46:41 +04:00
|
|
|
.Op Fl p Ar port
|
1993-03-21 12:45:37 +03:00
|
|
|
.Ar host
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
2005-03-11 06:19:31 +03:00
|
|
|
.Op Fl 468Ed
|
1997-01-09 09:57:45 +03:00
|
|
|
.Op Fl e Ar char
|
2003-04-07 05:46:41 +04:00
|
|
|
.Op Fl p Ar port
|
1997-01-09 09:57:45 +03:00
|
|
|
.Ar username@host
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh DESCRIPTION
|
1997-10-19 18:10:27 +04:00
|
|
|
.Nm
|
1993-03-21 12:45:37 +03:00
|
|
|
starts a terminal session on a remote host
|
|
|
|
.Ar host .
|
|
|
|
.Pp
|
1997-10-19 18:10:27 +04:00
|
|
|
.Nm
|
2004-09-05 12:38:23 +04:00
|
|
|
first attempts to use the standard Berkeley
|
2003-04-07 09:56:14 +04:00
|
|
|
.Em rhosts
|
2004-09-05 12:38:23 +04:00
|
|
|
authorization mechanism.
|
1993-03-21 12:45:37 +03:00
|
|
|
The options are as follows:
|
2003-04-07 09:56:14 +04:00
|
|
|
.Bl -tag -width XlXusernameX
|
2005-03-11 06:19:31 +03:00
|
|
|
.It Fl 4
|
|
|
|
Use IPv4 addresses only.
|
|
|
|
.It Fl 6
|
|
|
|
Use IPv6 addresses only.
|
1993-03-21 12:45:37 +03:00
|
|
|
.It Fl 8
|
|
|
|
The
|
|
|
|
.Fl 8
|
|
|
|
option allows an eight-bit input data path at all times; otherwise
|
|
|
|
parity bits are stripped except when the remote side's stop and start
|
|
|
|
characters are other than
|
2003-04-07 09:56:14 +04:00
|
|
|
.Sq \&^S/^Q .
|
1993-03-21 12:45:37 +03:00
|
|
|
.It Fl E
|
|
|
|
The
|
|
|
|
.Fl E
|
|
|
|
option stops any character from being recognized as an escape character.
|
|
|
|
When used with the
|
|
|
|
.Fl 8
|
|
|
|
option, this provides a completely transparent connection.
|
|
|
|
.It Fl d
|
|
|
|
The
|
|
|
|
.Fl d
|
|
|
|
option turns on socket debugging (see
|
|
|
|
.Xr setsockopt 2 )
|
|
|
|
on the TCP sockets used for communication with the remote host.
|
2003-04-07 09:56:14 +04:00
|
|
|
.It Fl e Ar char
|
1993-03-21 12:45:37 +03:00
|
|
|
The
|
|
|
|
.Fl e
|
|
|
|
option allows user specification of the escape character, which is
|
2003-04-07 09:56:14 +04:00
|
|
|
.Dq \&~
|
|
|
|
by default.
|
1993-03-21 12:45:37 +03:00
|
|
|
This specification may be as a literal character, or as an octal
|
|
|
|
value in the form \ennn.
|
2003-04-07 09:56:14 +04:00
|
|
|
.It Fl l Ar username
|
1996-09-27 06:49:50 +04:00
|
|
|
the
|
|
|
|
.Fl l
|
|
|
|
option specifies an alternate
|
|
|
|
.Ar username
|
|
|
|
for the remote login.
|
|
|
|
If this option is not specified, your local username will be used.
|
2003-04-07 09:56:14 +04:00
|
|
|
.It Fl p Ar port
|
2003-04-07 05:46:41 +04:00
|
|
|
Uses the given
|
2003-04-07 09:56:14 +04:00
|
|
|
.Ar port
|
|
|
|
instead of the one assigned to the service
|
|
|
|
.Dq login .
|
2003-04-07 05:46:41 +04:00
|
|
|
May be given either as symbolic name or as number.
|
1993-03-21 12:45:37 +03:00
|
|
|
.El
|
|
|
|
.Pp
|
2003-04-07 09:56:14 +04:00
|
|
|
A line of the form
|
2003-07-04 12:13:59 +04:00
|
|
|
.Dq Ao escape char Ac Ns \&.
|
2003-04-07 09:56:14 +04:00
|
|
|
disconnects from the remote host.
|
|
|
|
Similarly, the line
|
2003-07-04 12:13:59 +04:00
|
|
|
.Dq Ao escape char Ac Ns ^Z
|
2003-04-07 09:56:14 +04:00
|
|
|
will suspend the
|
1997-10-19 18:10:27 +04:00
|
|
|
.Nm
|
2003-04-07 09:56:14 +04:00
|
|
|
session, and
|
2003-07-04 12:13:59 +04:00
|
|
|
.Dq Ao escape char Ac Ns Aq delayed-suspend char
|
2003-04-07 09:56:14 +04:00
|
|
|
suspends the
|
1993-03-21 12:45:37 +03:00
|
|
|
send portion of the rlogin, but allows output from the remote system.
|
2003-04-07 09:56:14 +04:00
|
|
|
By default, the tilde
|
|
|
|
.Pq Dq \&~
|
|
|
|
character is the escape character, and normally control-Y
|
|
|
|
.Pq Dq \&^Y
|
|
|
|
is the delayed-suspend character.
|
1993-03-21 12:45:37 +03:00
|
|
|
.Pp
|
2003-04-07 09:56:14 +04:00
|
|
|
All echoing takes place at the remote site, so that (except for delays) the
|
1997-10-19 18:10:27 +04:00
|
|
|
.Nm
|
1993-03-21 12:45:37 +03:00
|
|
|
is transparent.
|
|
|
|
Flow control via ^S/^Q and flushing of input and output on interrupts
|
|
|
|
are handled properly.
|
|
|
|
.Sh ENVIRONMENT
|
2003-02-05 02:07:28 +03:00
|
|
|
The following environment variable is used by
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm :
|
1993-03-21 12:45:37 +03:00
|
|
|
.Bl -tag -width TERM
|
|
|
|
.It Ev TERM
|
|
|
|
Determines the user's terminal type.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2003-05-26 14:18:39 +04:00
|
|
|
.Xr rcmd 1 ,
|
1993-03-21 12:45:37 +03:00
|
|
|
.Xr rsh 1 ,
|
2003-05-26 14:18:39 +04:00
|
|
|
.Xr rcmd 3 ,
|
1997-11-26 21:06:51 +03:00
|
|
|
.Xr hosts.equiv 5 ,
|
2001-04-04 13:40:07 +04:00
|
|
|
.Xr rhosts 5 ,
|
2004-09-05 12:48:32 +04:00
|
|
|
.Xr environ 7
|
1993-03-21 12:45:37 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
1997-10-19 18:10:27 +04:00
|
|
|
.Nm
|
1993-03-21 12:45:37 +03:00
|
|
|
command appeared in
|
|
|
|
.Bx 4.2 .
|
|
|
|
.Sh BUGS
|
|
|
|
More of the environment should be propagated.
|