Skip to content

SSH and local proxy #35

@Mars-Dingdang

Description

@Mars-Dingdang

In VSCode, local proxy port (e.g. localhost:7897) will override remote proxy and cause Internet connection issues (e.g. Fail to connect to Copilot).

A suggested solution is as follows:

  1. In VSCode user settings, turn Http: Proxy Support from override to off.
  2. Connecting ssh, use ssh -N -L 6443:api.ai.iiis.co:6443 -R 7897:127.0.0.1:7897 ailab@js.ai.iiis.co -p 9022 by reversely mapping remote tunnel to local proxy port :7897.
  3. On remote cluster, set environment variables
export http_proxy=127.0.0.1:7897
export https_proxy=127.0.0.1:7897

May the README.md be modified to let others know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions