ssh fails with xinetd
madhurjf at gmail.com
Mon Jul 13 05:57:40 UTC 2009
I have a FreeBSD 6.2 system on which inetd was replaced with xinetd. Ever
since, I can't seem to get an ssh connection to the box, which was working
well with inetd. sshd is not running independently, but is spawned by inetd
(or xinetd) when there's a connection request. Here are a few things that
changed after bringing xinetd onboard.
socket_type = stream
wait = no
protocol = tcp
user = root
server = /usr/sbin/sshd
port = 22
log_on_failure += USERID
The telnet connections work well with xinetd, though. It's with ssh that I'm
seeing the problem. This is what is seen when a local connection is
$ ssh -v diag at 127.0.0.1
OpenSSH_4.2p1 FreeBSD-20050903, OpenSSL 0.9.7e-p1 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /var/home/diag/.ssh/identity type -1
debug1: identity file /var/home/diag/.ssh/id_rsa type -1
debug1: identity file /var/home/diag/.ssh/id_dsa type -1
debug1: ssh_exchange_identification: sshd re-exec requires execution with an
ssh_exchange_identification: Connection closed by remote host
Any idea on what's going on?
More information about the freebsd-questions