I confuse this all the time

This commit is contained in:
Florz 2021-02-18 23:17:08 +01:00
parent 57de47a01c
commit 915e3d166d

View file

@ -49,5 +49,5 @@ First use the `ssh-keygen` command to create a private and public key pair on th
`restrict`: this restricts all current and future forwarding options `restrict`: this restricts all current and future forwarding options
`command=""`: don't allow client to send a command, set an empty forced command instead `command=""`: don't allow client to send a command, set an empty forced command instead
`port-forwarding`: allow port forwarding `port-forwarding`: allow port forwarding
`permitlisten="localhost:22"`: restrict client to access ssh port on server only (default for security reasons) `permitlisten="localhost:22"`: restrict client to create (via `ssh -R`) port 22 on the server only, which will fail (default for security reasons)
`permitopen="localhost:22"`: restrict client to create port 22 on the server only, which will fail (default for security reasons) `permitopen="localhost:22"`: restrict client to access (via `ssh -L`) ssh port on server only (default for security reasons)