Contents
How do I restrict access to Linux server?
Resolution
- Create the restricted shell. …
- Modify the target user for the shell as restricted shell. …
- Create a directory under /home/localuser/ , e.g. programs. …
- Now if you check, the user localuser can access all commands which he/she has allowed to execute.
How do I setup a restricted ssh user for port forwarding?
How to create a restricted SSH user for port forwarding?
- execute shell commands.
- access files or upload files to the server.
- use the server as proxy (e.g. webproxy)
- access local services which were otherwise not publicly accessible due to a firewall.
- kill the server.