External Access to DC/OS Master

By eric

I’m in a situation where I need access to a few of the mesos.master’s nodes internal ports from my laptop. There isn’t really an easy way to do it since getting in typically requires the use of something like the following just to get to the master: 

1
dcos node ssh --master-proxy --leader

 After a bit more Googling and more banging my head against the wall than I’d like to admit, I realized that I just create a few SSH proxy tunnels and run everything I need against local host.

In order to get the IPs I needed for the command, I had to run the above command which outputted the following (IPs have been blinded to protect the innocent):

1
2
$ dcos node ssh --master-proxy --leader
Running `ssh -A -t core@42.42.42.42 ssh -A -t core@10.0.1.42`

Then I those IPs and put them in to an ssh proxy tunnel command line with the ports I want to access and now I can get to port 5050 by going to my localhost.

1
$ ssh -A -L 5050:10.0.1.42:5050 core@42.42.42.42

Follow My Travels

Buy My Book

Archives

  • 2020
  • 2019
  • 2017
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006

New Posts By Email

writing