RunpodR
Runpod2mo ago
purakisu

Private connection to pod web services

I am trying to understand how to connect to the pod in a way that only I have access. My plan:
  1. When deploying pods, I remove all exposed HTTP and TCP ports and leave fields empty. That will cause pod to not be public accessible at all (Would this work? or the machine will still be accessible through the ip?)
  2. I setup SSH connection and connect to the running pod through the ssh -L tunnel, mapping my local port to some port that I'll later use when starting the web service on the pod
This will allow me to connect to the web service running on pod through localhost and will ensure that only I can connect to it, spare me the headache of implementing auth in case some web services don't have it built-in (ComfyUI)? Is my thinking right?
Was this page helpful?