title: TeamCity to GitHub Connection Error: session is down
body: <p>I am unable to get a successful connection to my GitHub repository from my TeamCity configuration.</p>
  
  <p>When I perform a "Test Connection", I get the message;</p>
  
  <blockquote>
    <p>Test connection failed in ***** :: Pull-Build-Test. List remote refs failed: com.jcraft.jsch.JSchException: session is down.</p>
  </blockquote>
  
  <p>From the teamcity-server.log I get:</p>
  
  <blockquote>
    <p>WARN -   jetbrains.buildServer.SERVER - jetbrains.buildServer.serverSide.ExecutionException: Failed to collect changes, error: List remote refs failed: com.jcraft.jsch.JSchException: session is down.</p>
  </blockquote>
  
  <p>I am using TeamCity 7.1 on Ubuntu LTS 12.</p>
  
  <p>I have tried both a password and private key authentication, but both give the same message (above).</p>