Skip to content

Commit

Permalink
Update example versions
Browse files Browse the repository at this point in the history
  • Loading branch information
macropin committed Jul 9, 2024
1 parent f3f47c7 commit e28e7d1
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 @@ -99,7 +99,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 quay.io/panubo/sshd:1.6.0 mkpasswd
$ docker run --rm -it --entrypoint /usr/bin/env quay.io/panubo/sshd:1.9.0 mkpasswd
Password:
$6$w0ZvF/gERVgv08DI$PTq73dIcZLfMK/Kxlw7rWDvVcYvnWJuOWtxC7sXAYZL69CnItCS.QM.nTUyMzaT0aYjDBdbCH1hDiwbQE8/BY1
```
Expand All @@ -112,7 +112,7 @@ docker run -ti -p 2222:22 \
-e SSH_USERS=user:1000:1000 \
-e SSH_ENABLE_PASSWORD_AUTH=true \
-v $(pwd)/entrypoint.d/:/etc/entrypoint.d/ \
quay.io/panubo/sshd:1.6.0
quay.io/panubo/sshd:1.9.0
```

To enable password authentication on the root account, the previous `setpasswd.sh` script must also define a password for the root user, then
Expand All @@ -122,7 +122,7 @@ the command will be:
docker run -ti -p 2222:22 \
-e SSH_ENABLE_ROOT_PASSWORD_AUTH=true \
-v $(pwd)/entrypoint.d/:/etc/entrypoint.d/ \
quay.io/panubo/sshd:1.6.0
quay.io/panubo/sshd:1.9.0
```

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

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

## Releases
Expand Down

0 comments on commit e28e7d1

Please sign in to comment.