X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
X-YMail-OSG: TLaTXXUVM1ktc49IKHopqlRc63cKUil5wxPV7mHos6n9GZvGJwgb2EUiYXe.AHdj28vCO4Nz2WFVjRhxzs5drTewS7eVUg16T9CSzfpAtpcHcDfdpUOwYtb8RRORmzpfaQhlUdENVjx78xSRXz9C3VQoutwamg_BcETFcDt2
X-Mailer: YahooMailWebService/0.7.260.1
Date: Mon, 17 Nov 2008 13:24:17 -0800 (PST)
From: TheO <idgajelas@yahoo.com>
Subject: SFTP doesn't work with ChrootDirectory option set
To: cygwin@cygwin.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Message-ID: <97725.5279.qm@web34701.mail.mud.yahoo.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi,

I have Cygwin with OpenSSH version 5.1p1-9 installed.

I managed to make ssh with chroot to work by using ChrootDirectory in sshd_config and copying /bin/bash to the chroot directory.

But I can't make it work for SFTP even when I tried to set:

  ChrootDirectory /

which I expect should be the same as not using chroot at all!. I guess sftp-server simply doesn't support ChrootDirectory option properly. 

Has anybody else experienced the same thing? Can somebody help me in setting up chrooted SFTP server using Cygwin?

Many thanks.


      

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

