corneliusludmann / gitpod-playground

This repository intentionally left empty. It merely serves as an entry point for personal Gitpod experiments.
20 stars 19 forks source link

Could you help me SSH in by VSCode on W10? #3

Open JonatasAmaral opened 3 years ago

JonatasAmaral commented 3 years ago

Not sure if here's the place to do it, but there it is;

Here Jan talks about this solution: [https://community.gitpod.io/t/how-to-ssh-into-gitpod-workspace/341/25]()

And adds:

this also allows using VSCode Remote on Gitpod workspaces

So i tried to do it. Following the instruction, made to connect to the GITPOD workspace of this repo, both by Ubuntu over WSL and GIT Bash (on windows' terminals and VSCode too)

But can't do the same on Power Shell/CMD, as it prompt me out an error: CreateProcessW failed error:2 posix_spawn: No such file or directory

Pasting the command ssh -o ProxyCommand='chisel client https://8080-salmon-heron-agjwzb8k.ws-us03.gitpod.io stdio:%h:%p' gitpod@localhost -p 2222 on the VSCode + Add New SSH Host... input, updates the configuration file as what seens a reasonable way, not "mistyping" lets say. But doesn't connect

I have no experience on SSH.

I was thinking it had something to do with the chisel not been in Windows system. But putting it in the System PATH doesn't solve the problem.

I have no experience with chisel either.

So did you connect to GITPOD by VSCode on Windows? How to do it?

JonatasAmaral commented 3 years ago

ok, so tweaking the config file for a bit i made it out:

Saw on this forum, ssh's ProxyCommand needs full path off files to work, so chisel -> C:\...\chisel.exe On Windows the -o ProxyCommand='....' part have bit different syntax: -o " ProxyCommand ..."

So for the final comands:

JonatasAmaral commented 3 years ago

One extra little thing i'm going on, not exactly a problem que block the connection, neight GITPOD's/this repo's fault, but:

W10 recognize chisel.exe as Potentially Unwanted Software. And pop a warn notification on every connection. It is a know, and apparently not fixeble issue.

So, there is any alternative? I've seen on the forum Jan talking about corkscrew, but it is not beeing updated in a while. And there's not compiled file on repo to me to try, and having trouble to try to compile it on Windows, and truly, a have not ideia what to do 😅.