i’m using openSSH 8.1 for Windows. I try to chroot users to their homedir. Users home is D:homessubusername (configured in AD). Using the token %h in config file for the chroot-directory redirect the user to C:Usersusername.
Because of this, i tried to use D:homessub%u for chroot-directory. But this will redirect the user to D:homessub<domainname><username>, and of course, this folder doesn’t exist.
Is there any token for the pure username or another way to get users chroot to ther homes?
Source: Windows Questions