title: Bower install slow when running from teamcity
body: <p>I have a number of client side packages managed by bower. When we deploy our application (through teamcity) we do a bower install to get the latest version of each package and then copy this to our server. </p>
  
  <p>When I run this from my local machine bower install takes 10-20s. When I run it as a build step in teamcity (note command line build step with custom script containing "bower install") it takes 4 minutes. If I remote desktop onto that machine and run bower install from the command line it takes 10-20s. </p>
  
  <p>Has anyone got any thoughts what's going on?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>If I look at ProcExp on the server it seems ssh.exe is hanging for a long time before finishing executing. </p>
  
  <p>Some extra details:</p>
  
  <ul>
  <li>TeamCity Enterprise 7.1.4 (build 24331); Agent Version: 24331</li>
  <li>Windows Server 2008 R2</li>
  <li>Agent running as admin account </li>
  <li>Git v1.8</li>
  <li>Build step is custom script; node node_modules/bower/bin/bower install</li>
  <li>Tried with both teamcity.git.use.native.ssh=false &amp; teamcity.git.use.native.ssh=true</li>
  <li>Using private keys in /.ssh</li>
  </ul>
  
  <p>I found <a href="http://youtrack.jetbrains.com/issue/TW-24300">this issue on Teamcity's Youtrack</a> which seems to be the same/similar issue but has since been closed. Not certain if its related or not. I've also raised a <a href="http://youtrack.jetbrains.com/issue/TW-26257">new issue</a> but no response</p>