Freigeben über


Azure Container Service: How to create an SSH Tunnel

In my last post, I spoke about linking containers together in Docker and, specifically, Docker Swarm in Azure Container Service. One of the points I touched on was the need to create an SSH tunnel to connect to your Docker Swarm cluster in ACS. Today's post, video really, will go in depth on creating the SSH tunnel on Linux, Mac, and Windows.

To learn more, head on over on Channel 9 and let me know your thoughts! Please let me know if you have any questions, get stuck, just want to say hi, or you have other ideas for content. I'd love to hear from you!

In this video we review the following:

- Review SSH tunnels and how they work
- SSH tunnel creation on Linux / Mac
- SSH tunnel creation on Windows via PuTTY

Primary ssh tunnel code (Linux and Mac) used in this video is:

ssh -fNL 2375:localhost:2375 -p 2200 azureuser@[dnsprefix]mgmt.[location].cloudapp.azure.com

ACS resource links mentioned in the video:

Make a remote connection to a Kuburnetes, DC/OS, or Docker Swarm cluster