用xinetd无法启动sshd

由 pupilzeng 在 06-27-2003 19:51 发表:

用xinetd无法启动sshd

我在/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,则没问题。


Athlon XP1500+ +Jetway 866Pro(KT266A) +384RAM+Seaget U6 40G +Geforce MX400

Debian(sid)+XP </

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus