Skip to content

ssh between workspaces #7473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
konne opened this issue Jan 6, 2022 · 4 comments
Open

ssh between workspaces #7473

konne opened this issue Jan 6, 2022 · 4 comments
Labels
feature: persistent state meta: never-stale This issue can never become stale team: IDE team: workspace Issue belongs to the Workspace team type: feature request New feature or request

Comments

@konne
Copy link

konne commented Jan 6, 2022

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.

@sagor999 sagor999 added the team: workspace Issue belongs to the Workspace team label Feb 25, 2022
@stale
Copy link

stale bot commented May 30, 2022

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.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label May 30, 2022
@stale stale bot closed this as completed Jun 28, 2022
@atduarte atduarte reopened this Jun 28, 2022
@stale stale bot removed the meta: stale This issue/PR is stale and will be closed soon label Jun 28, 2022
@atduarte atduarte added meta: never-stale This issue can never become stale type: feature request New feature or request labels Jun 28, 2022
@atduarte
Copy link
Contributor

atduarte commented Jun 28, 2022

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#[email protected]'

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!

@loujaybee
Copy link
Member

loujaybee commented Jun 28, 2022

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
Copy link
Author

konne commented Jun 28, 2022

@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
Labels
feature: persistent state meta: never-stale This issue can never become stale team: IDE team: workspace Issue belongs to the Workspace team type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants