title: Connecting to Snowflake using SSO from JupyterHub running on AWS EC2
body: <p>(Submitting on behalf of a Snowflake client)</p>
  
  <p>.........................</p>
  
  <p>I have set up JupyterHub running on an Ubuntu EC2 instance. We have also started using SSO in Snowflake.</p>
  
  <p>However, whenever I try to actually use the snowflake connection I get the following error:</p>
  
  <pre><code>DatabaseError: 250009 (08001): Failed to connect to DB: &lt;REDACTED&gt;.eu
  west-1.snowflakecomputing.com:443, Unable to open a browser in this environment.
  </code></pre>
  
  <p>Seems like there was a similar challenge here:
  <a href="https://community.snowflake.com/s/question/0D50Z000095j13y/unable-to-connect-snowflakes-using-jupyter-notebook-running-on-ubuntu-server" rel="nofollow noreferrer">https://community.snowflake.com/s/question/0D50Z000095j13y/unable-to-connect-snowflakes-using-jupyter-notebook-running-on-ubuntu-server</a></p>
  
  <p>...but there didn't seem to be a clear answer in that thread. </p>
  
  <p>I realise this is almost definitely a problem with the EC2 instance rather than with Snowflake but I wouldnt know where to begin fixing this.</p>
  
  <p>.........................</p>
  
  <p>Any recommendations?  THANK YOU!</p>