Using variables in the name of the SFTP home directory
asked Dec 27 '10 at 18:53
SSH KB ♦
It is possible to use variables in the name of the user's home directory. The supported variables are %username%(will be "domain\user"), %username-without-domain%(will be "user"), %hostname% (refers to the hostname of the connecting client), and %homedir%. Below is an example using the %username% variable.
Tectia will recognize these as the same directory, and will display the username as the current home folder instead of HOME.
Note: In some cases (when the server is a part of the domain) you may have to use %username-without-domain% instead of just %username%
answered Dec 27 '10 at 19:00
Is there a way to do this without providing an arbitrary name for the virtual folder?
For example, consider this configuration:
This works, but the user is dumped into the /home directory upon SFTP login. Using nothing or slash for the name in the virtual-folder attribute does not work. I would like the user's starting/home directory to be "/", and map up to "F:SFTP%username-without-domain%"
This configuration was possible with WinSSHD virtual filesystem layout, but cannot seem to replicate in Tectia.
answered Apr 20 '11 at 17:09