COPSSH FSTP Home Folder Contents

5 posts / 0 new
Last post
RichardT
Offline
Last seen: 6 years 8 months ago
Joined: 29.11.2013 - 12:56
COPSSH FSTP Home Folder Contents

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.

itefix
Offline
Last seen: 1 hour 48 min ago
Joined: 01.05.2008 - 21:33
It is worth to experiment

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.

RichardT
Offline
Last seen: 6 years 8 months ago
Joined: 29.11.2013 - 12:56
So something like this? Match

So something like this?

Match User user_1

AuthorizedKeysFile /keys/user_1/.ssh/authorized_keys

 

i'll give it a whirl.

itefix
Offline
Last seen: 1 hour 48 min ago
Joined: 01.05.2008 - 21:33
Yes, that would do the trick.

Yes, that would do the trick.

RichardT
Offline
Last seen: 6 years 8 months ago
Joined: 29.11.2013 - 12:56
I had a problem with the

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.