I am trying to set up chrooted SFTP access but OpenSSH is giving this error:
/etc/ssh/sshd_config: line 94: Bad configuration option: ChrootDirectory /etc/ssh/sshd_config line 94: Directive 'ChrootDirectory' is not allowed within a Match block
I've seen that this is a problem with a OpenSSH version under 4.9. But my version seems to be OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012 on Ubuntu 13.04.
The relevant portion of my sshd_config file is below:
Subsystem sftp internal-sftp Match group nossh ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no
I can't figure this one out. Even the man page says it should work fine.