🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.bsd
Article #21260

sftp on openbsd

#21260
From: mk
Date: Tue, 09 Mar 2010 19:30
18 lines
1227 bytes
Hello
My system openBSD 4.6. I would like to give access for users by sftp but 
restricted only to one folder. I put on my /etc/ssh/sshd_config 
something like this:
Subsystem       sftp    /usr/libexec/sftp-server
Match User ftp
     ForceCommand internal-sftp
     ChrootDirectory /var/www/domains/configuration/htdocs

When trying login I see error:
subsystem request failed on channel 0
Couldn't read packet: Connection reset by peer

How to restricted user to /var/www/domains/configuration/htdocs folder 
only. How to do it for group?

Thanks
Mark
Technical Details
Message-ID: <hn67ka$k3v$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: mk <hover27@poczta.onet.pl>
Newsgroups: pl.comp.os.bsd
Subject: sftp on openbsd
Date: Tue, 09 Mar 2010 14:30:17 -0500
Organization: http://onet.pl
Lines: 18
Message-ID: <hn67ka$k3v$1@news.onet.pl>
NNTP-Posting-Host: 12.189.151.194
Mime-Version: 1.0
X-Trace: news.onet.pl 1268163019 20607 12.189.151.194 (9 Mar 2010 19:30:19 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Tue, 9 Mar 2010 19:30:19 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit