Hello,
I downloaded and installed the free version of COPSSH.
It is very easy to use, thanks so much but i have a couple of questions.
FYI, i am only using the SFTP function of this software at the moment and my query is regarding SFTP with PKA.
When creating an account for a person, it creates their home directory but then there are files and folders within this home directory. Ideally i would like the person on the other end connecting to not see any of these files and folders (just OCD and don't like people seeing things that they have no idea about, just causes a headache).
I have played around with Windows security permissions but because i also want this working with PKA but the .ssh folder needs to be read-able by the person connecting.
Is there a way to have the files/folders referred to for the PKA but the person connecting gets connected to a seperate "data" folder, that only they can see?
Hope that makes sense.
It is worth to experiment with the sshd_config directive AuthorizedKeysFile. By combining it with the Match directive you may be able to control the location of the authorized keys file at user level.
So something like this?
Match User user_1
AuthorizedKeysFile /keys/user_1/.ssh/authorized_keys
i'll give it a whirl.
Yes, that would do the trick.
I had a problem with the service not starting after entering that (never starts after entering a "Match" command) but then i settled on this.
Under where it says;
#AuthorizedKeysFile .ssh/authorized_keys
Enter this;
AuthorizedKeysFile /keys/%u/.ssh/authorized_keys
Saved and restarted the service and now it works as desired.
Many many thanks for the help in pushing me in the right diection. Most appreciated.