From owner-freebsd-questions@FreeBSD.ORG Mon Jul 13 05:57:39 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8BFB106564A for ; Mon, 13 Jul 2009 05:57:39 +0000 (UTC) (envelope-from madhurjf@gmail.com) Received: from mail-px0-f200.google.com (mail-px0-f200.google.com [209.85.216.200]) by mx1.freebsd.org (Postfix) with ESMTP id 8DB2A8FC1C for ; Mon, 13 Jul 2009 05:57:39 +0000 (UTC) (envelope-from madhurjf@gmail.com) Received: by pxi38 with SMTP id 38so1373972pxi.3 for ; Sun, 12 Jul 2009 22:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=7HPuk+V1z6L2nTplqNEf0g2MI2jpcHaRRPOPTY6enzI=; b=OLKVqDHJfORooIRGRJ84V/lG7vuPf/JPLk2duu3ixEh86q7s8aRGCbBnNaidgyXZrf NoRrvvEU58DqH2QrVpOOuedaBpk6z8KyiWbJI/CmBTZ64yyKLxqASI1WP7FW894gAaya z29MsMR86XXMiSEeO8mMHMRpBZTtAcF0MWIqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=apS8UxtMb+pGUDZu1JLNPQzF6Gg2YFr1ZCmrSc92I91hV+YfucPBOTCKReGlRCHb74 pipE1lrX1nBnI+ZIKC5fYJP8QvIhsvmA0IhSNKtRnMam8D3fcMC7EgCqT/tAyLudgcKg uIGvkieooOaI7SQ19V32vE40NbMu1+/bTVZko= MIME-Version: 1.0 Received: by 10.114.169.13 with SMTP id r13mr8271650wae.113.1247463425393; Sun, 12 Jul 2009 22:37:05 -0700 (PDT) Date: Mon, 13 Jul 2009 11:07:05 +0530 Message-ID: <8d32a6620907122237v984a518m62e11ce96e3dbda0@mail.gmail.com> From: Madhusudan R To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: randy.belk@gmail.com, mlfreebsd@streamingedge.com Subject: ssh fails with xinetd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2009 05:57:40 -0000 Hi, 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. /etc/rc.conf: ------------------- #inetd_enable="YES" xinetd_enable="YES" xinetd.conf ---------------- service ssh { 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 initiated: $ ssh -v diag@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 absolute path ssh_exchange_identification: Connection closed by remote host Any idea on what's going on? Thanks, Madhu