xinet과 ssh
sshd를 xinetd의 관리하에서 돌리려고,
/etc/xinetd.d/ssh
란 파일을 만들었습니다.
service ssh
{
        disable                 = no
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/sshd
        server_args             = /etc/ssh/sshd_config
        per_source              = 2
        instances               = 10
        log_on_success          += PID HOST DURATION
        log_on_failure          += HOST
}
이렇게 정했습니다만, 왠일인지 접속하면 바로 끊어져 버리는 군요.
시스템 로그 입니다.
Sep 22 01:20:24 localhost xinetd[20230]: START: ssh pid=20232 from=219.252.119.51
Sep 22 01:20:24 localhost xinetd[20230]: EXIT: ssh pid=20232 duration=0(sec)
Sep 22 01:20:44 localhost xinetd[20230]: Exiting...
물론 xinet말고 sshd 혼자 따로 띄우면 잘 됩니다.
뭐가 문제일까요?
덧붙여서, vsftp도 xinet하에서 돌립니다만, 이것은 문제없이 잘 돌아갑니다.


server_args에 -i 옵션을 주십시오.[code:1]#
server_args에 -i 옵션을 주십시오.
# man sshd -i Specifies that sshd is being run from inetd. 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.[/code]감사합니다 :)덕분에 해결 했습니다.
감사합니다 :)
덕분에 해결 했습니다.
댓글 달기