P
P
Pavel_Quantorium2020-02-15 12:51:34
Cables and wires
Pavel_Quantorium, 2020-02-15 12:51:34

How to restrict ssh file access?

It is necessary to restrict access to files via SSH to certain users. sFTP was disabled due to settings

sshd_config
Subsystem sftp internal-sftp -f AUTH -l VERBOSE
Match user moder
  ChrootDirectory /privilegies/moder
  ForceCommand internal-sftp
#Match group minecrafters
  #ChrootDirectory /minecrafters/%u
  #PermitTTY yes                                                                                                        
Match group minecrafters
  PermitTTY yes
  ForceCommand bash
And how to block scp and the ability to work with files via SSH? Tell me, please!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dollar, 2019-06-11
@dollar

Then something like this . Untitled. Just an 8 pin cable.
There at the There are other options on the site.

K
Karpion, 2020-02-16
@Karpion

As a rule, this is solved by access rights - chmod, chown, chgrp commands.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question