Topic "Implementing chroot directory for sftp users"

Author Message
windowsguy2016
[View user's profile]

Joined: 2016-05-17
Posts: 2
Hello all,

I am running OpenSSH64 on a Windows 2012 environment. OpenSSH64 is running and I can access the server. I have modified the sshd_config file with no success. I have made the following changes

Subsystem sftp C:\OpenSSH-Win64\sftp-server.exe

Match User sftponly-user
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
ChrootDirectory %h

I have also tried

ChrootDirectory C:\User_Specific_Directory\

We are trying to generate logs to verify the changes we make in the sshd_config file are being applied, however, we only receive the following error in the log;

3784 11:00:17 087 error: accept: The operation completed successfully.

Does anyone have a working example of chrooting a user to a specific directory?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
This is a support forum for WinSCP, not OpenSSH.
windowsguy2016
[View user's profile]

Joined: 2016-05-17
Posts: 2
prikryl wrote:
This is a support forum for WinSCP, not OpenSSH.


Thank you for the update, do you happen to know which is the correct forum for OpenSSH?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
No, but you can try asking as http://superuser.com/
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License