title: Git clone from remote ssh repository - change the machine on the remote network before executing the clone command
body: <p>I'd like to clone a git repository from my company's servers to my personal computer. The only way to acces these servers from "outside" is by logging in per ssh to 'machine1'</p>
  
  <pre><code>ssh user@machine1.company.xy
  </code></pre>
  
  <p>Unfortunately, git ist not installed on that specific machine. So a git clone like</p>
  
  <pre><code>git clone ssh://user@machine1.company.xy/path/to/repo &lt;local-repo-path&gt;
  </code></pre>
  
  <p>won't work. What I would have to do is to change to another machine 'machine2' where git is installed after having logged in to the network via 'machine1'. So to get the clone working I would have to execute a command like</p>
  
  <pre><code>ssh machine2
  </code></pre>
  
  <p>before actually executing the git command. Is there any way to do that? Something like a pre-clone hook maybe?</p>
  
  <p>Is it possible to somehow pack the remote repository into a file (patch?), to copy that file onto the local machine and to clone from that file?</p>
  
  <p>Looking forward to your hints and suggestions!</p>