Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2005 13:36:38 GMT
From:      vittorio <vdemart1@tin.it>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/86759: Unable to initialise sftp; could not connect
Message-ID:  <200509301336.j8UDacV3091296@www.freebsd.org>
Resent-Message-ID: <200509301340.j8UDeJo1045307@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         86759
>Category:       misc
>Synopsis:       Unable to initialise sftp; could not connect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 30 13:40:19 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509301336.j8UDacV3091296>