Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9593

Windows Server 2022 openssh sftp change default directory

$
0
0

Windows Server 2022

Installed optional feature OpenSSH Server

With FileZilla I connect to server as MyUser which opens to

/C:/Users/MyUser/

which is the default directory.

But what I want is for the sftp home folder to map to C:/sftp/

According to OpenSSH instructions I need to modify sshd_config

I only find this file

C:\Windows\System32\OpenSSH\sshd_config_default

( although this file is not marked read-only, apparently is can't be edited or overwritten )

so I created a copy

C:\Windows\System32\OpenSSH\sshd_config

and modified the line :

Subsystem sftp sftp-server.exe -d "C:\sftp"

Next I restarted the OpenSSH Server Windows Service.

However, FileZilla still connects to /C:/Users/MyUser/


Viewing all articles
Browse latest Browse all 9593

Trending Articles