我需要更改Debian 4.0服务器的telnetlogin提示符。 目前它的forms是:
hostname login:
我需要只是:
login:
显然,对/etc/issue.net的chnages只影响“login prompt”之前显示的内容而不是实际的提示。
谢谢!
-h参数控制login提示符下主机名的打印:
-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