In the OpenSSH Server bundled with Windows, to change the default folder you're switched to upon connecting:
C:\ProgramData\ssh\sshd_configin your favorite text editor.
Scroll down to the following line in the file:
Subsystem sftp sftp-server.exe
sftp-server.exe -d "c:\RootFolder", where
"c:\RootFolder"is the root folder to load when connecting, so that the line looks like this:
Subsystem sftp sftp-server.exe -d "c:\RootFolder"
Save your changes and restart the
OpenSSH SSH Serverservice.
The next time you open an SFTP connection to the server, you'll be dropped into the folder you specified above.