Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mjnaderi committed Aug 10, 2024
1 parent 3fead90 commit 940f7aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ between two containers on different servers.
## Server image

```shell
$ docker pull ghcr.io/querateam/docker-ssh-tunnel/server
docker pull ghcr.io/querateam/docker-ssh-tunnel/server
```

The following environment variables are supported in the server image.
Expand Down Expand Up @@ -50,7 +50,7 @@ For more information, see the [`sshd_config(5)`](https://linux.die.net/man/5/ssh
## Client image

```shell
$ docker pull ghcr.io/querateam/docker-ssh-tunnel/client
docker pull ghcr.io/querateam/docker-ssh-tunnel/client
```

The client image uses `autossh` to establish a persistent SSH tunnel.
Expand Down Expand Up @@ -144,8 +144,8 @@ docker run --name tunnel-client --rm -it --init --add-host=host.docker.internal:
Test the tunnel using `nc`:

```shell
$ docker exec -it tunnel-client /usr/bin/nc -l -s 127.0.0.1 -p 6666
$ nc 127.0.0.1 4444
docker exec -it tunnel-client /usr/bin/nc -l -s 127.0.0.1 -p 6666
nc 127.0.0.1 4444
```

## Docker compose example
Expand Down Expand Up @@ -178,6 +178,6 @@ services:
Test the tunnel using `nc`:

```shell
$ docker compose exec -it tunnel-client /usr/bin/nc -l -s 127.0.0.1 -p 6666
$ nc 127.0.0.1 4444
docker compose exec -it tunnel-client /usr/bin/nc -l -s 127.0.0.1 -p 6666
nc 127.0.0.1 4444
```

0 comments on commit 940f7aa

Please sign in to comment.