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


Recommended Posts

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

  • 2 weeks later...
  On 17/05/2019 at 21:40, KS10 said:

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

Expand  

It has been a while since I did this so my memory is not pulling up a direct answer for you but most likely it is because there are about 3 or 4 or maybe more ways to create low level Junction Points in Windows and most likely you used the wrong one!

 

"With great power comes great complications" so the most sophisticated O/S on Planet Earth has a crazy list of many ways to do the same things all for some specific very focused reason.

 

But when you get the Junction Points just right even to internal O/S bits, they survive all sorts of major O/S updates!

 

 

  • 3 weeks later...
  On 27/05/2019 at 20:01, DevTech said:

It has been a while since I did this so my memory is not pulling up a direct answer for you but most likely it is because there are about 3 or 4 or maybe more ways to create low level Junction Points in Windows and most likely you used the wrong one!

 

"With great power comes great complications" so the most sophisticated O/S on Planet Earth has a crazy list of many ways to do the same things all for some specific very focused reason.

 

But when you get the Junction Points just right even to internal O/S bits, they survive all sorts of major O/S updates blue stacks

 

 

Expand  

Instead of configuring the OpenSSH server for each user individually we will create a new group and add all our chrooted users to this group.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I would not mind paying 120 up to 150 dollars in this economy value of the dollar currency if their video game is quite breathtaking and excellent use of my hard earned work money. I think people need to appreciate all the effort workers and time that goes into excellent and worthy video games. Now if only the publishers and companies behind the video games would share the love with the developers those at the bottom of work making such games happen as in increase their money accounts and give them a more richer life that I wish would have happened . But how companies have bad reputation of being $$$ profit greedy I feel sad if there are any developers that feel unappreciated as in no real compensation for all the hours of work they put into a blockbuster hit . Have a great day everyone . Thank you developers engineers and programmers that make superb video games happen . You have my thanksgiving and I hope you really really appreciate my words . With you all about this
    • I guess they use the free version, which doesn't send money to any Russians.
    • True, you can pin it to the Start Menu, but my preference is to pin it to the Taskbar since I am using W11 on a desktop with a large display and a lot of space on the Taskbar.
    • 200 mph. Try going 200 mph with a vehicle on a street in any city in America. Good luck. Yes its speculation but so is the idea that it has been 100% approved by the government. When a new drug is under development it goes through a number of test phases, each of increasing efficacy and safety. I would imagine it is the same in this case. You can similuate real conditions on test roads with other cars and if successful on test roads you move it to the next test phase of testing it on real streets with human assistance if needed. Testing conditions on test roads can never account for all real life situations on real roads. This is what I imagine is happening now. The final test phase.
    • Over the years I have amassed what could be considered a collection of cheap HP laptops. These laptops, all based on AMD architectures have not failed me.
  • Recent Achievements

    • Week One Done
      Hartej earned a badge
      Week One Done
    • One Year In
      TsunadeMama earned a badge
      One Year In
    • Week One Done
      shaheen earned a badge
      Week One Done
    • Dedicated
      Cole Multipass earned a badge
      Dedicated
    • Week One Done
      Alexander 001 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      571
    2. 2
      ATLien_0
      186
    3. 3
      +FloatingFatMan
      183
    4. 4
      Skyfrog
      112
    5. 5
      Xenon
      106
  • Tell a friend

    Love Neowin? Tell a friend!