title: C# send a simple SSH command
body: <p>I'm a young a student and received my homework for this week. It's pretty difficult for me because I have to create a program, that is able to connect to an SSH server and send the command "etc/init.d/networking restart".</p>
  
  <p>I should program this application in C# and I'm pretty new to it (Just have learned from some school lessons). I also should create a GUI.</p>
  
  <p>I understand the basics of C# (loop, if etc...).</p>
  
  <p>I've already created GUI, menus, buttons and a log listbox.
  GUI = 3 textboxes (ip, username, password) and a button to connect.</p>
  
  <p><img src="https://i.stack.imgur.com/lNzZI.png" alt="screenshot of ui"></p>
  
  <p><img src="https://i.stack.imgur.com/Iqqm8.png" alt="screenshot of code"></p>
  
  <p>I'm coding with Microsoft Vistual Studio.</p>
  
  <p>My question is: How can I establish an SSH connection to my server?</p>