Skip to content

Commit b19ad1f

Browse files
committed
update: headings in docker-context
Signed-off-by: Ali Mehraji <a.mehraji75@gmail.com>
1 parent b569525 commit b19ad1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

posts/docker-context-ssh-through-proxy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you want to connect to and manage a remote Docker daemon without exposing the
1313

1414
By configuring SSH to use a proxy and defining a Docker context that targets the remote host via SSH, Docker commands executed locally are transparently forwarded to the remote Docker daemon. This allows you to use standard Docker workflows (`docker ps`, `docker compose`, `docker build`) as if the daemon were local, while still benefiting from SSH key authentication, proxy enforcement, and connection `keepalive` mechanisms.
1515

16-
### SSH Configuration
16+
## SSH Configuration
1717

1818
To connect to a remote server via SSH through a proxy, `ProxyCommand` is used together with `nc` (`netcat`). All SSH connections to the remote host are routed through the specified SOCKS5 (it could be HTTP) proxy.
1919

@@ -38,7 +38,7 @@ Host vps-docker
3838
- `ProxyCommand`: forces SSH traffic to pass through a local SOCKS5 proxy (e.g. a VPN tunnel).
3939
- `PreferredAuthentications publickey`: Specifies that SSH should prefer (and effectively enforce) public key–based authentication instead of password-based authentication when connecting to the host.
4040

41-
### Docker Context
41+
## Docker Context
4242

4343
Docker can connect to the remote Docker daemon over SSH.</br>
4444
The SSH connection itself is routed through the configured SOCKS5 proxy , ensuring all Docker traffic to the remote host passes through the proxy.

0 commit comments

Comments
 (0)