O manual sshd_config indica que
The
ChrootDirectorymust contain the necessary files and directories to support the user's session. For an interactive session this requires at least a shell, typicallysh(1), and basic/devnodes such asnull(4),zero(4),stdin(4),stdout(4),stderr(4), andtty(4)devices. For file transfer sessions using SFTP no additional configuration of the environment is necessary if the in-process sftp-server is used, though sessions which use logging may require/dev/loginside the chroot directory on some operating systems (seesftp-server(8)for details).
Você deve criar o diretório dev e copiar o script /dev/MAKEDEV lá. Usando o script, crie os arquivos de dispositivos necessários.
Para usuários interativos, você precisa instalar os binários necessários e as bibliotecas associadas no chroot também.
A referência ao "servidor sftp em processo" significa que ForceCommand internal-sftp deve ser usado no bloco Match .
Nota: o trecho é do OpenSSH 7.5, já que não tenho acesso a nenhuma implementação SSH mais antiga.