title: SSH Jump Host WITHOUT Agent Forwarding
body: <p>Although a simple question, I have searched for days without success.</p>
  
  <pre><code>M = My machine 
  J = Jump Host
  S = Server
  
  Jump Host has my public key on authorized_keys.
  Server has J's public key on authorized_keys.
  
  Allowed connections (due to key authentication):
  M -&gt; J
  J -&gt; S
  </code></pre>
  
  <p>How is it possible for me to ssh into S from my machine?</p>
  
  <p>My current configuration is:</p>
  
  <pre><code>host jump
    user root
    HostName x.x.x.x
  
  host server
    user root
    HostName x.x.x.x
    port 22
    ForwardAgent no
    ProxyCommand ssh jump -W %h:%p
  </code></pre>
  
  <p>It does not work as it tries to login with M's key.</p>
  
  <p>Here's the ssh log</p>
  
  <pre><code>debug1: Host 'x.x.x.x' is known and matches the ECDSA host key.
  debug1: Found key in /Users/xxxxx/.ssh/known_hosts:1542
  ...
  debug1: Authentications that can continue: publickey
  debug1: Next authentication method: publickey
  debug1: Offering RSA public key: /Users/xxxxx/.ssh/id_rsa
  debug1: Authentications that can continue: publickey
  debug1: Trying private key: /Users/xxxxx/.ssh/id_dsa
  debug1: Trying private key: /Users/xxxxx/.ssh/id_ecdsa
  debug1: Trying private key: /Users/xxxxx/.ssh/id_ed25519
  debug1: No more authentication methods to try.
  Permission denied (publickey).
  Killed by signal 1.
  </code></pre>