![root 用户的 Telnet 本地主机访问](https://linux22.com/image/1148553/root%20%E7%94%A8%E6%88%B7%E7%9A%84%20Telnet%20%E6%9C%AC%E5%9C%B0%E4%B8%BB%E6%9C%BA%E8%AE%BF%E9%97%AE.png)
我在 Ubuntu 14.04 PC 上安装了 telnet。我能够 telnet 同一网络中的远程计算机。但我无法使用 root 用户(即本地主机) telnet 到我的 PC。
我该如何解决这个问题?
答案1
此配置让我能够 telnet localhost。
# xinetd 的简单配置文件 # # 一些默认值,并包括 /etc/xinetd.d/
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d