server
kern.version=OpenBSD 5.3-current (GENERIC.MP) #71: Sat Apr 13 17:21:57 MDT 2013
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

/etc/ssh/sshd_config
only add after last line

Match Group share
        ForceCommand internal-sftp
        ChrootDirectory /home/chroot/

# sshd -t   ##ok

# mkdir /home/chroot/

# adduser share

frome other machine,
the user share can not sftp to the server,
but same config in Mar 1 snapshot, sftp is ok.

Reply via email to