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