大网数据广告活动
服务器运维问答

what is the difference between /etc/issue.net and /etc/issue

· 52CE 我爱测

What are their purpose as they have the same content ? [me@myserver ~]$ cat /etc/issue Red Hat Enterprise Linux Server release 6.10 (Santiago) Kernel \r on an \m [me@myserver ~]$ cat /etc/issue.net Red Hat Enterprise Linux Server…

问题原文

原帖链接 · Baptiste Mille-Mathias · CC BY-SA 4.0

What are their purpose as they have the same content ?

[me@myserver ~]$ cat /etc/issue
Red Hat Enterprise Linux Server release 6.10 (Santiago)
Kernel \r on an \m

[me@myserver ~]$ cat /etc/issue.net
Red Hat Enterprise Linux Server release 6.10 (Santiago)
Kernel \r on an \m

已采纳解答

原帖链接 · Mousa Halaseh · CC BY-SA 4.0

Both /etc/issue.net and /etc/issue are used to display a banner (e.g. welcome line/ warning..) to SSH users before the login prompt:

  • /etc/issue.net is shown to the users who connect from the network.
  • /etc/issue is shown to both local users and network users unless /etc/issue.net is present and configured.

Also, to configure them to be displayed when you login via SSH, you need to uncomment #Banner and specify the desired filename at /etc/ssh/sshd_config, like:

Banner /etc/issue.net

The filename /etc/issue.net is the historical location for pre-login banners for network logins using protocols like telnet or rlogin. Some Unix vendors had a version of telnetd, rshd and/or rlogind that used /etc/issue for network logins too; others made it configurable like sshd does now.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-07-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。