title: Why am I getting "Could not resolve hostname" while trying to connect to my EC2
body: <p>I am trying to connect via SSH to my EC2 Instance. </p>
  
  <p>This <strong>works</strong>:</p>
  
  <pre><code>ssh ubuntu@ec2-1-111-111-111.eu-central-1.compute.amazonaws.com
  </code></pre>
  
  <p>However, when I try to alias my connection by adding this to my ~/.ssh config:</p>
  
  <pre><code>Host my_alias
        Hostname ec2-1-111-222-222.eu-central-1.compute.amazonaws.com
        IdentityFile ~/.ssh/key.pem
        User ubuntu
  </code></pre>
  
  <p>I receive the following error:</p>
  
  <pre><code>ssh: Could not resolve hostname my_alias: nodename nor servname provided, or not known
  </code></pre>
  
  <p>When I run the following command:</p>
  
  <pre><code>ssh my_alias
  </code></pre>
  
  <p>I am on osx catalina </p>