Cannot connect Ubuntu to starbucks wifi network

Solution 1:

The issue is it recognises that the WiFi connection is trying to “hijack” the secure connection. It prevents this.

To avoid this, navigate to http://neverssl.com. This webpage will never use HTTPS and family, so it will always be “hijackable” by the WiFi.

Solution 2:

Problem

YouTube prevents other sites, even your hotspot's login page, from doing anything using its domain name:

  1. You're trying to go to YouTube
  2. The hotspot is trying to redirect everything you do, including YouTube pages, to its login page until you login
  3. YouTube is set up to force your browser to use HTTPS (that's what HSTS in that error message means)
  4. HTTPS allows only the genuine YouTube site to work on its domain name
  5. The hotspot won't work through YouTube's domain name, getting blocked by the browser just like you see

Solution

To log into hotspots, use neverssl.com:

  1. Open a new tab or window in your web browser.
  2. Go to http://neverssl.com — which prevents the use of HTTPS and allows hotspot to redirect to login page. (You can add this to your browser bookmarks so you don't forget it).
  3. If the hotspot login page doesn't appear, press the reload button
  4. Log in to the hotspot
  5. Close the tab after successfully logging in