После запуска sshd через xinetd не удается запустить ssh на клиентской стороне (напрямую подключаюсь к демону без проблем ).
/usr/local/bin/ssh -vvv 127.0.0.1
OpenSSH_4.1p1, OpenSSL 0.9.8 05 Jul 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/termit/.ssh/identity type -1
debug1: identity file /home/termit/.ssh/id_rsa type -1
debug1: identity file /home/termit/.ssh/id_dsa type -1
debug1: ssh_exchange_identification: sshd re-exec requires execution with an absolute path
ssh_exchange_identification: Connection closed by remote host
В логах на сервере - ничего, хотя стоит уровень сообщений DEBUG.
SSHD запущен без сообщений об ошибках.
Aug 11 14:50:58 vicina xinetd[12484]: Reading included configuration file: /etc/xinetd.d/ssh [file=/etc/xinetd.d/ssh] [line=19]
Aug 11 14:50:58 vicina xinetd[12484]: xinetd Version 2.3.12 started with libwrap loadavg options compiled in.
Aug 11 14:50:58 vicina xinetd[12484]: Started working: 2 available services
netstat -na|grep 22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
В конфиге xinetd указан абс. путь к sshd:
/etc/xinetd.d/ssh
#
# ssh - ssh daemon
#
service ssh
{
disable = no
flags = NAMEINARGS
# The type of logging. This logs to a file that is specified.
# Another option is: SYSLOG syslog_facility [syslog_level]
log_type = FILE /var/log/ssh-log
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/tcpd
server_args = /usr/local/sbin/sshd
}
hosts.allow & hosts.deny настроены корректно.
В чем может быть причина?
Поиск по инету дает только совет указывать абс. путь.