title: How to do remote debugging with Nsight 5.5 on Linux?
body: <p><em><strong>Disclaimer:</strong> I know that this question has been asked numerous times, but before Nsight 5.5 the answer simply was "You can't."</em></p>
  
  <p>I'm trying to debug a CUDA program with Nsight 5.5 on Ubuntu. The remote machine is also an Ubuntu with CUDA Toolkit 5.5.</p>
  
  <p>I setup debugging in NSight using the "Debug an application on a remote system".
  Whenever I try to run the application I get a "Could not start gdbserver on the remote host" error.</p>
  
  <p>This is what I get on the console:</p>
  
  <pre>
  Last login: Thu Aug  1 16:09:26 2013 from host.whatever.edu
  echo $PWD'>'
   :2345 /tmp/nsight-debug/flow;exit
  someuser@remotehost:~$ echo $PWD'>'
  /home/someuser>
  someuser@remotehost:~$  :2345 /tmp/nsight-debug/flow;exit
  :2345: command not found
  logout
  </pre>
  
  <p>Both <code>gdbserver</code> and <code>cuda-gdbserver</code> are installed on both machines.</p>
  
  <p>If I ssh to the remote host, I can run <code>/tmp/nsight-debug/flow</code> manually.</p>
  
  <p>What might be the problem here? Is there anything missing from the setup?</p>