Skip to content

ssh between workspaces #7473

@konne

Description

@konne

Describe the behavior you'd like

that I can just call:

ssh WORKSPACEID
or
scp toWORKSPACEID

between workspaces that are running and I'm the owner.

Activity

stale

stale commented on May 30, 2022

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

added
meta: staleThis issue/PR is stale and will be closed soon
on May 30, 2022
removed
meta: staleThis issue/PR is stale and will be closed soon
on Jun 28, 2022
atduarte

atduarte commented on Jun 28, 2022

@atduarte
Contributor

Currently it's possible to SSH, it's just not as easy:

# First we will need to have a SSH key in the machine to avoid password authentication
ssh-keygen -N "" -f ~/.ssh/id_rsa

Go to https://gitpod.io/workspaces, find the workspace you want to connect to, click "Connect via SSH", copy the provided command and execute the command in the workspace you want to connect from. The command should look similar to:

ssh 'workspace-id-123#very-big-token@workspace-id-123.ssh.ws-eu47.gitpod.io'

Given this, I will move to the IDE inbox to potentially abstract and simplify these steps


Thanks @axonasif for bringing this solution to my attention!

added this to 🚀 IDE Team and removed this from 🌌 Workspace Teamon Jun 28, 2022
loujaybee

loujaybee commented on Jun 28, 2022

@loujaybee
Member

Hey @konne, as @atduarte mentions, you should be able to use the SSH access as if you were coming from local.

However, given that you also mentioned scp, could I understand what files you're trying to pass between workspaces?

Is it the same or similar to the use case described in this issue?

Also, potentially related issues:

Depending on the use-case, a Tailscale (or similar networking) setup could also help:

https://www.gitpod.io/docs/configure/tailscale
https://www.gitpod.io/guides/connect-multiple-repositories-using-tailscale

konne

konne commented on Jun 28, 2022

@konne
Author

@loujaybee I'm aware of other tickets.

the SCP could be solved via a store and restore but for me, it is weird and would even not allow doing things like vscode ssh extensions there I can even browse a remote system.

tailscale would solve port forwarding topics, but first I think it is too complex to set up for simple cases. Second, you do have not full control if you run multiple same workspaces in parallel.

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

        Participants

        @atduarte@konne@loujaybee@sagor999

        Issue actions

          ssh between workspaces · Issue #7473 · gitpod-io/gitpod