title: How to: scp over Jumphost, each with privatekeys
body: <p>I want to have an scp command over a Jumphost to the targetserver. Both, the Jumphost and the targetserver, require an key for the login.</p>
  
  <p>If there would be no key required, I think this command would work:</p>
  
  <pre><code>scp -o ProxyJump=usernameJumpserver@ipJumpserver filename usernameTargetserver@ipTargetserver:/path/filename
  </code></pre>
  
  <p>So, including a key, I get to this command:</p>
  
  <pre><code>scp -i /pathOnMyClient/key -o ProxyJump=usernameJumpserver@ipJumpserver filename usernameTargetserver@ipTargetserver:/path/filename
  </code></pre>
  
  <p>Then I get the error "usernameTargetServer@ipTargetserver: Permission denied (publickey)."</p>
  
  <p>I can't add the (probably?) required -i /pathJumpserver/key to it. How does it work?</p>