Page 1 of 1

issue connecting to sftp

Posted: 2023-01-24 16:56
by tennyson
So I have a bit of a challenge and I can’t seem to figure it out.

I have OpenSSH manually installed on our windows 2019 server, the server’s add feature wouldn’t work with it so I needed to manually install it. It’s located at
C:\OpenSSH-Win64

I have 2 users connecting to it, our sever admin account, and SFTPUser, an account I made for sftp access.

Both users have the same permissions as far as I can tell (both are members of the admin group).

admin account connects no problem using sftp in both filezilla and winscp

SFTPUser connects with winscp when I set the server path to C:\OpenSSH-Win64\sftp-server.exe
Filezilla doesn’t seem to have the option of specifying the path for sftp.

I thought about adding the path the environment variables on the server but that didn’t seem to help. The SFTPUser has full control of that path and any other path I can think of related to the sftp.

Any ideas would be appreciated.

Re: issue connecting to sftp

Posted: 2023-01-25 08:27
by botg
The client asking for a specific subsystem executable by path is merely a fallback mechanism if the SSH server itself does know about the SFTP subsystem. The proper solution is to configure the SSH server so that it knows about the SFTP subsystem in its sshd_config.

Re: issue connecting to sftp

Posted: 2023-01-25 13:42
by tennyson
Thanks botg
Do i add the path in here? Not sure what the syntax is

# override default of no subsystems
Subsystem sftp sftp-server.exe
Subsystem sftp internal-sftp

Re: issue connecting to sftp

Posted: 2023-01-25 21:04
by botg
I recommend reading the server manual or asking the server vendor for advice.