LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 788|回复: 1

用xinetd无法启动sshd

[复制链接]
发表于 2003-6-27 19:51:58 | 显示全部楼层 |阅读模式
我在/etc/xinetd.d/中添加一个sshd文件,内容:
service ssh
{
disable         = no
protocol        = tcp
socket_type     = stream
wait            = no
user            = root
server          = /usr/sbin/sshd
}

>/etc/init.d/xinetd reload
>nmap localhost
Port       State       Service
21/tcp     open        ftp
22/tcp     open        ssh
23/tcp     open        telnet
>ssh localhost
ssh_exchange_identification: Connection closed by remote host
但是我如果使用/etc/init.d/ssh start启动sshd,则没问题。
 楼主| 发表于 2003-6-28 15:01:45 | 显示全部楼层
大家帮帮忙吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表