From fe920974518f20c6d92ce5a15271ba7b8fc42e82 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Mon, 7 Apr 2025 17:42:49 +0530 Subject: [PATCH] Added Documentaion Comments for SSH Tunnel flags --- .../packer-plugin-sdk/communicator/SSH-not-required.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/content/partials/packer-plugin-sdk/communicator/SSH-not-required.mdx b/website/content/partials/packer-plugin-sdk/communicator/SSH-not-required.mdx index e119862b9..6526fdc04 100644 --- a/website/content/partials/packer-plugin-sdk/communicator/SSH-not-required.mdx +++ b/website/content/partials/packer-plugin-sdk/communicator/SSH-not-required.mdx @@ -95,8 +95,12 @@ useful if, for example, packer hangs on a connection after a reboot. Example: `5m`. Disabled by default. -- `ssh_remote_tunnels` ([]string) - +- `ssh_remote_tunnels` ([]string) - Remote tunnels forward a port from your local machine to the instance. + Format: ["REMOTE_PORT:LOCAL_HOST:LOCAL_PORT"] + Example: "9090:localhost:80" forwards localhost:9090 on your machine to port 80 on the instance. -- `ssh_local_tunnels` ([]string) - +- `ssh_local_tunnels` ([]string) - Local tunnels forward a port from the instance to your local machine. + Format: ["LOCAL_PORT:REMOTE_HOST:REMOTE_PORT"] + Example: "8080:localhost:3000" allows the instance to access your local machine’s port 3000 via localhost:8080.