Connect Remote Server To Colab

  • For GPU support, with NVIDIA drivers and the NVIDIA container toolkit installed, use:
    docker run --gpus=all -p 9000:8080 us-docker.pkg.dev/colab-images/public/runtime
    
  • SSH tunneling to the remote server:
    ssh -L 9000:localhost:9000 seclab-gpu
    
    • use this cmd to ensure the tunnel is open:
        ps aux | grep ssh
      
  • connect to the local runtime in colab: enter the URL http://localhost:9000/token=? in the browser

  • check the GPU usage:



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • curl cookers
  • docker cookers
  • 金刚经:凡所有相,皆是虚妄
  • 道德经:道可道,非常道,名可名,非常名
  • How to submit to arXiv