From nobody@FreeBSD.org  Fri Sep 30 13:36:39 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D591916A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Sep 2005 13:36:39 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AB68943D53
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Sep 2005 13:36:39 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j8UDadDl091297
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Sep 2005 13:36:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j8UDacV3091296;
	Fri, 30 Sep 2005 13:36:38 GMT
	(envelope-from nobody)
Message-Id: <200509301336.j8UDacV3091296@www.freebsd.org>
Date: Fri, 30 Sep 2005 13:36:38 GMT
From: vittorio <vdemart1@tin.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Unable to initialise sftp; could not connect
X-Send-Pr-Version: www-2.3

>Number:         86759
>Category:       conf
>Synopsis:       ssh(1): unable to initialise sftp with ssh; could not connect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 30 13:40:19 GMT 2005
>Closed-Date:    Thu Apr 20 17:01:58 GMT 2006
>Last-Modified:  Thu Apr 20 17:01:58 GMT 2006
>Originator:     vittorio
>Release:        Releng 5_4
>Organization:
>Environment:
FreeBSD vicbsd.grtn 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
   
>Description:
 Trying to connect with a client to an sshd server using sftpd the client  fails connection invariably complaining:
....
sftp-server: Command not found.
Fatal: unable to initialise SFTP: could not connect
.......

Instead ssh, scp work fine
>How-To-Repeat:
Reconnecting via sftpd
>Fix:
 The last line of the boxed file /etc/ssh/sshd_config says:
subsystem   sftp   /usr/lib/misc/sftp-server  

1) change this line into
subsystem   sftp   /usr/libexec/sftp-server
(as a matter of fact the command sftp-server is in this latter directory)
2) stop sshd with killall sshd as root
3) restart sshd with sshd


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: kris 
State-Changed-When: Fri Sep 30 17:42:57 GMT 2005 
State-Changed-Why:  
Unable to confirm the problem, more information needed from 
submitter 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86759 

From: Kris Kennaway <kris@obsecurity.org>
To: vittorio <vdemart1@tin.it>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/86759: Unable to initialise sftp; could not connect
Date: Fri, 30 Sep 2005 13:42:43 -0400

 >  The last line of the boxed file /etc/ssh/sshd_config says:
 > subsystem   sftp   /usr/lib/misc/sftp-server  
 
 No it doesn't, at least in the openssh installed by FreeBSD.  Did you
 install openssh yourself or something?
 
 Kris
State-Changed-From-To: analyzed->closed 
State-Changed-By: maxim 
State-Changed-When: Thu Apr 20 17:01:39 UTC 2006 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86759 
>Unformatted:
