title: ssh config name alias not working for scp
body: <p>I have this error when using scp:</p>
  
  <pre><code>scp -r h1:/dir1 h2:/dir1
  ssh: Could not resolve hostname online1: Name or service not known
  lost connection
  </code></pre>
  
  <p>But both <code>ssh h1</code> and <code>ssh h2</code> works well for I have config name alias in .ssh/config like this:</p>
  
  <pre><code>Host h1
    HostName 172.16.18.xxx
    User xxx
  </code></pre>
  
  <p>No editing on /etc/hosts. And I also use <code>ssh-copy-id</code> to work out the public key. Any idea of what's wrong?</p>