title: "bash: nc: command not found" error on ssh multi-hop
body: <p>Environment: Ubuntu 14.04.</p>
  
  <p>When I use no-root account for ssh multi-hops, it's OK.</p>
  
  <p>But when I switch to root account (by <code>$sudo -i</code>), the ssh multi-hops doesn't work and it always gives error "<code>bash: nc: command not found</code>", and /bin/nc is surely there!</p>
  
  <p>Very strange. Anybody has some hints?</p>
  
  <p>The multi-hops ssh config is something like this:</p>
  
  <pre><code>cat ~/.ssh/config
  
  # Multi-Hop SSH
  Host serverA 
      HostName serverA.abc.net
  
  # Multi-Hop SSH
  Host sha
      ProxyCommand ssh -q serverA nc sha.abc.net 22
  </code></pre>