title: Multi hop SSH through SSH.NET in C#
body: <p>I am doing SSH to a Linux machine and again from there want to SSH to another Linux machine to carry out few Perforce tasks. </p>
  
  <pre><code>using (SshClient ssh = new SshClient("ip address","username", "pwd"))
  {
      ssh.Connect();
      command = ssh.CreateCommand("ssh hostname");
      result = command.Execute();
      Console.WriteLine(result);
  }
  </code></pre>
  
  <p>Where the <code>ssh hostname</code> is a <strong>password less</strong> ssh. How can I control the second SSH session and pass commands to it? </p>
  
  <p>Even explored the <code>CreateShell</code> function, but seems like it is not suggested for automation.</p>