Skip to content

Commit

Permalink
Update README for more usages
Browse files Browse the repository at this point in the history
  • Loading branch information
haravich committed Aug 14, 2023
1 parent 8508f89 commit dbc2d02
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,17 @@ Before you begin, ensure you have the following installed:

```bash
docker build -t custom-ssh-server .
docker run -d -p 2222:22 -e SSH_USER=<desired_username> -e SSH_PASSWORD=<desired_password> -e SSH_PUBLIC_KEY="<value of public key> | $(cat /ssh-keys/*.pub)" custom-ssh-server
docker run -d -p 2222:22 -e SSH_USER=<desired_username> -e SSH_PASSWORD=<desired_password> custom-ssh-server
(or)
docker run -d -p 2222:22 -e SSH_USER=<desired_username> -e SSH_PUBLIC_KEY="<value_of_public_key> || $(cat /ssh-keys/*.pub)" custom-ssh-server
(or)
docker run -d -p 2222:22 -e SSH_USER=<desired_username> -e SSH_PASSWORD=<desired_password> -e SSH_PUBLIC_KEY="<value_of_public_key> | $(cat /ssh-keys/*.pub)" custom-ssh-server
```
Replace <desired_username> and <desired_password> with appropriate values.
Replace <desired_username>, <desired_password> and <value_of_public_key> with appropriate values.

## Usage

Expand Down

0 comments on commit dbc2d02

Please sign in to comment.