Go to main content

手册页部分 1:用户命令

退出打印视图

更新时间: 2022年7月27日 星期三
 
 

rlogin(1)

名称

rlogin - remote login

用法概要

rlogin [-8ELKa] [-e c] [-l username] hostname
hostname [-8ELKa] [-e c] [-l username]

描述


Caution

注意  -  All data exchanges over this protocol are performed without encryption, and have no protection against spoofing or snooping of traffic.The in.rlogind server is disabled by default on Oracle Solaris and most other modern operating systems, and both the in.rlogind server and the rlogin command may be removed in future versions of Oracle Solaris.Use of the ssh(1) utility is strongly recommended instead.


rlogin 实用程序会在终端与名为 hostname 的远程计算机之间建立一个远程登录会话。

Hostnames are provided by the hosts(5) name service.每台主机都有一个正式名称(数据库条目中的第一个名称),也可以有一个或多个别名。正式名称或别名都可以在 hostname 中指定。

If the name of the file from which rlogin is executed is anything other than rlogin, rlogin takes this name as its hostname argument.This allows you to create a symbolic link to rlogin in the name of a host which, when executed, invokes a remote shell on that host.By creating a directory and populating it with symbolic links in the names of commonly used hosts, then including the directory in your shell's search path, you can run rlogin by typing hostname to your shell.

远程终端类型与环境 TERM 变量中所指定的本地终端类型相同。终端或窗口大小也会复制到远程系统中,前提是服务器支持该选项。大小的更改也会反映出来。所有回显都发生在远程站点,因此远程登录对用户是透明的(延迟除外)。使用 Ctrl-S 和 Ctrl-Q 控制流量以及在中断时刷新输入和输出都会得到正确处理。

选项

支持以下选项:

–8

跨网传递八位数据,而非七位数据。

–a, –K

通过发送一个空本地用户名,强制远程计算机要求用户输入口令。

–e c

为用来与远程主机断开连接的行指定一个不同的转义符 c

–E

防止任何字符被识别为转义符。

–l username

为远程登录指定不同的 username。如果未使用此选项,则所使用的远程用户名与本地用户名相同。

–L

允许 rlogin 会话在 “litout” 模式下运行。

转义序列

键入的以波浪号字符 (~) 开头的行即“转义序列”。转义符可通过 –e 选项更改。

~.

与远程主机断开连接。与远程端断开连接和注销不同,因为本地主机在断开连接时不会向远程端发送警告信息。

~susp

暂停登录会话,但仅在使用具备作业控制功能的 shell 时进行。susp 是“暂停”字符,通常为 Ctrl-Z。See tty(1).

~dsusp

在登录中途暂停输入,但是仍可看到输出(仅在使用具备作业控制功能的 shell 时)。dsusp 是“延迟暂停”字符,通常为 Ctrl-Y。See tty(1).

操作数

hostname

rlogin 建立远程登录会话时所在的远程计算机。

用法

Each remote machine can have a file named /etc/hosts.equiv containing a list of trusted host names with which it shares user names.在本地计算机和远程计算机上拥有相同用户名的用户无需输入口令即可从远程计算机的 /etc/hosts.equiv 文件中所列的计算机执行 rlogin 操作。Individual users can set up a similar private equivalence list with the file .rhosts in their home directories.此文件的每一行都包含两个名称,即主机名和用户名,而且二者由空格隔开。远程用户 .rhosts 文件中的条目允许登录到 hostname 的名为 username 的用户像远程用户一样,无需输入口令即可登录远程计算机。如果远程计算机上的 /etc/hosts.equiv 文件中不含该本地主机的名称,且远程用户的 。rhosts 文件中不含本地用户名和主机名,则远程计算机将提示用户输入口令。/etc/hosts.equiv.rhosts 文件中所列的主机名必须是 hosts 数据库中所列的正式主机名。不可在这些文件中使用别名。

出于安全原因,.rhosts 文件必须由远程用户或 root 用户所有。

文件

/etc/hosts.equiv

包含共享用户名的可信主机名列表。

/etc/nologin

Message displayed to users attempting to login during system maintenance.

$HOME/.rhosts

可信主机名/用户名组合的专用列表。

属性

有关下列属性的说明,请参见 attributes(7)

属性类型
属性值
可用性
network/legacy-remote-utilities
Interface Stability
Obsolete

另请参见

rsh(1), ssh(1), stty(1), tty(1), hosts(5), hosts.equiv(5), nologin(5), attributes(7), in.rlogind(8)

诊断

以下消息表明计算机正在关闭,且登录已禁用:

NO LOGINS: System going down in N minutes

附注

将系统列在 hosts.equiv 中时,它必须具有与本地安全相当的安全性。将不安全的系统列在 hosts.equiv 中可能会危及整个系统的安全性。

此实现仅可使用 TCP 网络服务。

将来的 Oracle Solaris 发行版可能会删除此技术。

History

Support for Kerberos, including the options –a, –f, –F, –k, –K, –x, and –X, was added in Solaris 10 3/05 and removed in Oracle Solaris 11.4.0.Prior to Solaris 10, a kerberized version was available in the Sun Enterprise Authentication Mechanism (SEAM) add-on package for Solaris.

Support for IPv6 was added in Solaris 8.

Support for the –E option was added in Solaris 2.0.

The rlogin command, including support for the options –8, –e, –l, and –L, has been present since the initial release of Solaris.