• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

Issue Hardlink/Junction not working when chroot all users to c:/share dir in Windows OpenSSH Server 2019.

Recommended Posts

KS10    0

Hardlink/Junction not working when chroot all users to c:/share dir in Windows OpenSSH Server 2019.


Link Created
mklink /d E "E:"
mklink /d F "F:"

 

Entry in sshd_config file
ChrootDirectory c:/share


Now When I connect to my Server via SCP using SFTP. I landed on the Share Dir.
I am able to browse E and F Drive from Share Dir.
However I am NOT able to view or copy any file for E & F .

 

What I figured out is that via Hardlink or junction Link I can only see the Dir, But I can't view the content of the file and can't even copy the file.

 

My Requirement is to
Use Windows 2019 Server with OPENSSH Integrated with Active Directory
Create hard Link for 5 Hard drive (2Tb Each ) to Share Folder
So when user connect via SCP, then land in C:/Share Dir, and then from their they can go D,E,F,G Drive

 

I need the SSH functionality integrated with active directory to authenticate users

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.