Skip to content

Commit

Permalink
update for 1.2.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
macropin committed May 19, 2020
1 parent 2f09db9 commit 3f665ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ It is strongly recommend to pre-hash passwords. Passwords that are not hashed ar
To generate a hashed password use `mkpasswd` which is available in this image or use [https://trnubo.github.io/passwd.html](https://trnubo.github.io/passwd.html) to generate a hash in your browser. Example use of `mkpasswd` below.

```
$ docker run --rm -it --entrypoint /usr/bin/env docker.io/panubo/sshd:1.2.0 mkpasswd
$ docker run --rm -it --entrypoint /usr/bin/env docker.io/panubo/sshd:1.2.1 mkpasswd
Password:
$6$w0ZvF/gERVgv08DI$PTq73dIcZLfMK/Kxlw7rWDvVcYvnWJuOWtxC7sXAYZL69CnItCS.QM.nTUyMzaT0aYjDBdbCH1hDiwbQE8/BY1
```
Expand All @@ -101,10 +101,10 @@ To start sshd with the `setpasswd.sh` script
```
docker run -ti -p 2222:22 \
-v $(pwd)/keys/:/etc/ssh/keys \
-e SSH_USERS=user1.2.00:1000 \
-e SSH_USERS=user:1000:1000 \
-e SSH_ENABLE_PASSWORD_AUTH=true \
-v $(pwd)/entrypoint.d/:/etc/entrypoint.d/ \
docker.io/panubo/sshd:1.2.0
docker.io/panubo/sshd:1.2.1
```

## Usage Example
Expand All @@ -121,7 +121,7 @@ docker run -ti -p 2222:22 \
-v $(pwd)/keys/:/etc/ssh/keys \
-v $(pwd)/data/:/data/ \
-e SSH_ENABLE_ROOT=true \
docker.io/panubo/sshd:1.2.0
docker.io/panubo/sshd:1.2.1
```

Create a `www` user with gid/uid 48. You can access with `ssh www@localhost -p 2222` using your private key.
Expand All @@ -132,7 +132,7 @@ docker run -ti -p 2222:22 \
-v $(pwd)/keys/:/etc/ssh/keys \
-v $(pwd)/data/:/data/ \
-e SSH_USERS="www:48:48" \
docker.io/panubo/sshd:1.2.0
docker.io/panubo/sshd:1.2.1
```

## Releases
Expand Down

0 comments on commit 3f665ae

Please sign in to comment.