更改 Debian 服务器上的登录提示

更改 Debian 服务器上的登录提示

我需要更改 Debian 4.0 服务器的 telnet 登录提示。目前它的形式为:

hostname login:

我只需要:

login:

显然,对 /etc/issue.net 的更改只会影响“登录提示”之前显示的内容,而不会影响实际提示。

谢谢!

答案1

-h参数控制登录提示时主机名的打印:

-h   Disables the printing of host-specific information before login has been completed.

您应该将此选项添加到您的相应行中/etc/inetd.conf,例如:

telnet          stream  tcp     nowait  telnetd /usr/sbin/tcpd  /usr/sbin/in.telnetd telnetd -h

相关内容