title: scp command is not working for copying directory in linux
body: <p>I am trying to copy selected entire directory from node1 to another node2 from jump instance by using below command but its throwing error. I am able to login to the node1 and from node1 I am also able to login to node2 and vice versa.</p>
  
  <p><strong>Node1</strong> and <strong>node2</strong>  are identical</p>
  
  <pre><code>scp -r -i abc.pem user1@node1:/abc/abc1/* user2@node2:/abc/abc1/*
  </code></pre>
  
  <p><strong>Error</strong>:</p>
  
  <blockquote>
    <p>Permission denied (publickey). lost connection</p>
  </blockquote>