0

maybe silly question, but I have no experiences to this.

I have server and I need to get access multiple user via SSH to upload the files to my server.

I want the other users can see only this folder and can not listing other files system.

My OS is Red Hat.

I tried:

adduser share
passwd share (set for example 123)

When I try to access from other computer to this server (folder)

shh share@IP

I can list all the files not only in directory share. Any idea how to create only access to user share with write access?

Geroge
  • 101

1 Answers1

0

You can use the restricted command when creating your new user to specify which folder he has access to.

Something like:

adduser --home /restricted/directory restricted_user

I think this feed will help too by giving a good example: ssh user with limited access

hackela
  • 133