mirror of
https://github.com/nwtgck/handy-sshd.git
synced 2025-06-08 15:13:17 +00:00
docs: --allow-streamlocal-forward
This commit is contained in:
parent
9703d25277
commit
6937695b52
1 changed files with 20 additions and 18 deletions
14
README.md
14
README.md
|
@ -46,24 +46,25 @@ There are several permissions:
|
|||
* --allow-direct-tcpip
|
||||
* --allow-execute
|
||||
* --allow-sftp
|
||||
* --allow-streamlocal-forward
|
||||
* --allow-tcpip-forward
|
||||
|
||||
**All permissions are allowed when nothing is specified.** The log shows "allowed: " and "NOT allowed: " permissions as follows:
|
||||
|
||||
```console
|
||||
$ handy-sshd --user "john:"
|
||||
2023/08/11 09:42:05 INFO listening on :2222...
|
||||
2023/08/11 09:42:05 INFO allowed: "tcpip-forward", "direct-tcpip", "execute", "sftp", "direct-streamlocal"
|
||||
2023/08/11 09:42:05 INFO NOT allowed: none
|
||||
2023/08/11 11:40:44 INFO listening on :2222...
|
||||
2023/08/11 11:40:44 INFO allowed: "tcpip-forward", "direct-tcpip", "execute", "sftp", "streamlocal-forward", "direct-streamlocal"
|
||||
2023/08/11 11:40:44 INFO NOT allowed: none
|
||||
```
|
||||
|
||||
For example, specifying `--allow-direct-tcpip` and `--allow-execute` allows only them:
|
||||
|
||||
```console
|
||||
$ handy-sshd --user "john:" --allow-direct-tcpip --allow-execute
|
||||
2023/08/11 09:38:58 INFO listening on :2222...
|
||||
2023/08/11 09:38:58 INFO allowed: "direct-tcpip", "execute"
|
||||
2023/08/11 09:38:58 INFO NOT allowed: "tcpip-forward", "sftp", "direct-streamlocal"
|
||||
2023/08/11 11:41:03 INFO listening on :2222...
|
||||
2023/08/11 11:41:03 INFO allowed: "direct-tcpip", "execute"
|
||||
2023/08/11 11:41:03 INFO NOT allowed: "tcpip-forward", "sftp", "streamlocal-forward", "direct-streamlocal"
|
||||
```
|
||||
|
||||
## --help
|
||||
|
@ -79,6 +80,7 @@ Flags:
|
|||
--allow-direct-tcpip client can use local forwarding and SOCKS proxy
|
||||
--allow-execute client can use shell/interactive shell
|
||||
--allow-sftp client can use SFTP and SSHFS
|
||||
--allow-streamlocal-forward client can use Unix domain socket remote forwarding
|
||||
--allow-tcpip-forward client can use remote forwarding
|
||||
-h, --help help for handy-sshd
|
||||
--host string SSH server host (e.g. 127.0.0.1)
|
||||
|
|
Loading…
Add table
Reference in a new issue