- 论坛徽章:
- 0
|
原帖由 wlacf 于 2006-9-22 11:15 发表
那我系统这个目录下没有这个文件/etc/xinetd.d/sshd-xinetd,是不是要手动创建啊
yes...
还有设定原本 standalone sshd 服务停止执行,用service sshd stop行吗,还是用别的方法停止?
yes... or /etc/init.d/sshd stop
设定每次开机不启动是这样子吗?chkconfig --level 0123456 sshd off
yes... rh-based 系统是可以使用 chkconfig。
不过你用 chkconfig sshd off 就可以了
这样改完后,不用改原来sshd_config的配置文件吗?因为原来的配置文件好像没有启动方式这项,不像别的比如 proftpd等有这个选项可选的。如果是这样的话,那原来的standalone启动方式是在哪里设置的呢?谢谢。
sshd 启动传入 -i 就是使用 inetd/xinetd 方式启动运作之。
- man sshd
- -i Specifies that sshd is being run from inetd(8). sshd is normally
- not run from inetd because it needs to generate the server key
- before it can respond to the client, and this may take tens of
- seconds. Clients would have to wait too long if the key was
- regenerated every time. However, with small key sizes (e.g.,
- 512) using sshd from inetd may be feasible.
复制代码
还有,其实 sshd 不要放 xinetd 启动,因为通常实在没这个必要。
== |
|