title: scp between 2 remote hosts - without password
body: <p>I use paramiko module and I can simply put and get files to and from remote host. Is there the way I can copy the file between 2 remote hosts? 
  I have pem file on my local host so I can establish ssh to both hosts. Is there the way I can do it without (if possible) additional configuration on remote hosts - using SSH key and without passwords?</p>
  
  <pre><code>ssh = paramiko.SSHClient()
  ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  privkey = paramiko.RSAKey.from_private_key_file (path_to_priv_key_file)
  ssh.connect(host, username = username,  key_filename=path_to_priv_key_file)
  </code></pre>
  
  <p>I have connection to remote host, but when I try</p>
  
  <pre><code>cmd = "scp –v /usr/local/1.py user1@hos1:/usr/local"
  ssh.exec_command(cmd)
  </code></pre>
  
  <p>I get <code>Permission denied (publickey).</code></p>