title: Fastlane match cannot connect over SSH
body: <p><strong>Existing solutions</strong></p>
  
  <p>I've searched SO and Github extensively before asking my question. None of the existing topics present any working solutions for our setup.</p>
  
  <p><strong>Configuration</strong></p>
  
  <p>We've got Jenkins + Fastlane configured on a remote macOS machine.
  Fastlane match is supposed to get the signing credentials (certificate + provisioning profile) from a dedicated repository over SSH.</p>
  
  <p><strong>Issue</strong></p>
  
  <p>The SSH connection fails (it hangs). Jenkins console output:</p>
  
  <pre><code>INFO [2019-04-09 14:09:29.05]: Cloning remote git repo...
  INFO [2019-04-09 14:09:29.05]: If cloning the repo takes too long, you can use the `clone_branch_directly` option in match.
  INFO [2019-04-09 14:09:29.05]: [36m$ git clone ssh://git@xxx.xx.x.xxx:xxxx/cert/ios-certificates-profiles.git /var/folders/_redacted_[0m
  INFO [2019-04-09 14:09:29.07]: ▸ [35mCloning into '/var/folders/_redacted_'...[0m
  INFO [2019-04-09 14:09:29.19]: ▸ [35mThe authenticity of host '[xxx.xx.x.xxx:xxxx]:xxxx ([xxx.xx.x.xxx:xxxx]:xxxx)' can't be established.[0m
  INFO [2019-04-09 14:09:29.19]: ▸ [35mRSA key fingerprint is _REDACTED_.
  </code></pre>
  
  <p>Running the "git clone ssh://git@xxx.xx.x.xxx:xxxx/..." command from the terminal on the same machine:</p>
  
  <ul>
  <li>clones the repository successfully</li>
  <li>adds the host to the known_hosts file</li>
  </ul>
  
  <p>Still Jenkins keeps hanging on the fastlane match command. Any ideas why Jenkins cannot connect over SSH to the repository? What am I missing?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Adding the <code>clone_branch_directly</code> option to the match command has no effect, the command still hangs.</p>