SSH from vscode/terminal back to local desktop?
Lets say I start a terminal from the Coder UI in my browser (or I launch VSCode).
Is it possible to work an SSH tunnel back to my actual local desktop from the docker instance that I'm inside?
I've tried looking for things like SSH_CONNECTION, but thats just 0.0.0.0
My use case is this: My desktop has an OAUTH enabled AWS VPN connection. I want to be able to run some pymongo code in the docker container, and have it connect via my desktop vpn into AWS.
My use case is this: My desktop has an OAUTH enabled AWS VPN connection. I want to be able to run some pymongo code in the docker container, and have it connect via my desktop vpn into AWS.
7 Replies
<#1314028731957907556>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
hey @Winton I'm not sure I understand, you want the Coder workspace to be able to access something that is only available to your local machine?
Yes - although I've come up with a solution that solves our immediate problem, but I'd still love to be able to run the pymongo code on our Coder machine host, and have it tunnel back through my local machine and be able to use the VPN. But for now I'm happy!
i'm curious, what fix did you find?
You have to run the pymongo code on the desktop, with Amazon VPN activated to reach the documntDB, and then I write the results (actually copy) to an S3 bucket thats outside the VPN.
cool, thanks!
this use-case is pretty complicated but i'd like to see if we can find something better still
so, your goal is to be running pymongo on your desktop, and letting Coder workspaces access that pymongo instance, correct?
a couple of questions, is there a reason that you cannot run the pymongo instance within the Coder workspace?
if you can't, is there anything stopping you from installing the AWS VPN inside your coder workspace?
Can it be done using the revere port forwarding?
coder port-forward -r
?