Skip to content

[Feature]: Allow remote port forwarding for dev-environment #3257

Open

Description

@dmelikyan

Problem

There are use cases that may require remote port forwarding to the local machine. For example, developing/testing an SDK on a GPU machine that sends data to the collector running on a local machine.

Solution

Add remote_ports to YML and to CLI, similar to ports.

remote_ports: 
    - REMOTE_PORT:LOCAL_PORT

Workaround

Add RemoteForward to ~/.dstack/ssh/config after dstack apply and dstack attach.

e.g. RemoteForward 8082 localhost:8082

Would you like to help us implement this feature by sending a PR?

Yes

Activity

  1. github-actions commented on Dec 5, 2025

    @github-actions

    This issue is stale because it has been open for 30 days with no activity.

  2. github-actions commented on Dec 19, 2025

    @github-actions

    This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions