TL;DR - go to the bottom of the answer, "Applying the restrictions" Adding a restricted user consists of two parts: 1. Creating the user 2. Configuring the SSH daemon (sshd) Configuring sshd The best place to get known to the possibilities of SSH is by reading the related manual pages: ssh(1) ssh_config(5) sshd(8) sshd_config(5) Where can SSH client perform actions? Before you can restrict somethi
![How to create a restricted SSH user for port forwarding?](https://cdn-ak-scissors.b.st-hatena.com/image/square/664a2d3dc991972667a15e0e849615b9670c436b/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Faskubuntu%2FImg%2Fapple-touch-icon%402.png%3Fv%3Dc492c9229955)