- 论坛徽章:
- 0
|
telnet 按照如下配置,能在本机telnet,但无法远程,请指教
二、 TELNET服务(虽然这里提到telnet,但是为了安全,最好还是使用ssh,这个程序现在流行的unix都默认安装)
修改如下2个文件,使系统能被网络上的其他机器的用户访问,如果要能root远程操作机器
开通TELNET服务是很必要的。
1./etc/securetty,添加以下行:
…… //省略
pts/0
pts/1
……
pts/5 //可以加多行
----------------------------------------------------------------------------------------------------------------------
2./etc/xinetd.d/telnet
----------------------------------------------------------------------------------------------------------------------
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
----------------------------------------------------------------------------------------------------------------------
确保disable=no |
|