misc/86759: Unable to initialise sftp; could not connect

vittorio vdemart1 at tin.it
Fri Sep 30 06:40:20 PDT 2005


>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 at 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:


More information about the freebsd-bugs mailing list