mirror of
https://github.com/nwtgck/handy-sshd.git
synced 2025-06-08 07:03:04 +00:00
docs: add "Examples"
This commit is contained in:
parent
e4f1e0989d
commit
a3b74d23c8
1 changed files with 22 additions and 0 deletions
22
README.md
22
README.md
|
@ -1,2 +1,24 @@
|
||||||
# handy-sshd
|
# handy-sshd
|
||||||
Portable SSH Server
|
Portable SSH Server
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Listen on 2222 and accept user name "john" with password "mypassword"
|
||||||
|
handy-sshd -p 2222 --user "john:mypassword"
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Listen on 2222 and accept user name "john" without password
|
||||||
|
handy-sshd -p 2222 --user "john:"
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Listen on 2222 and accept users "john" and "alice" without password
|
||||||
|
handy-sshd -p 2222 --user "john:" --user "alice:"
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Listen on unix domain socket
|
||||||
|
handy-sshd --unix-socket /tmp/my-unix-socket --user "john:"
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue